summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch')
-rw-r--r--meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch11
1 files changed, 4 insertions, 7 deletions
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch
index b22ac3aca4..df7b0a7782 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch
@@ -1,4 +1,4 @@
1From 10afeecd10499fbd64b2c68d3b076c6906df441f Mon Sep 17 00:00:00 2001 1From a99fc685214452aedabf9ac105bb99357006aa26 Mon Sep 17 00:00:00 2001
2From: Andrea Adami <andrea.adami@gmail.com> 2From: Andrea Adami <andrea.adami@gmail.com>
3Date: Wed, 5 Sep 2018 17:07:48 +0200 3Date: Wed, 5 Sep 2018 17:07:48 +0200
4Subject: [PATCH] kexec-arm64.c: workaround for getrandom() syscall 4Subject: [PATCH] kexec-arm64.c: workaround for getrandom() syscall
@@ -15,15 +15,15 @@ and
15| ../git/kexec/arch/arm64/kexec-arm64.c:499:12: warning: implicit declaration of function 'getrandom'; did you mean 'srandom'? [-Wimplicit-function-declaration] 15| ../git/kexec/arch/arm64/kexec-arm64.c:499:12: warning: implicit declaration of function 'getrandom'; did you mean 'srandom'? [-Wimplicit-function-declaration]
16| result = getrandom(&fdt_val64, 16| result = getrandom(&fdt_val64,
17 17
18
19Upstream-Status: Inappropriate [klibc specific] 18Upstream-Status: Inappropriate [klibc specific]
20Signed-off-by: Andrea Adami <andrea.adami@gmail.com> 19Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
20
21--- 21---
22 kexec/arch/arm64/kexec-arm64.c | 12 +++++++++++- 22 kexec/arch/arm64/kexec-arm64.c | 12 +++++++++++-
23 1 file changed, 11 insertions(+), 1 deletion(-) 23 1 file changed, 11 insertions(+), 1 deletion(-)
24 24
25diff --git a/kexec/arch/arm64/kexec-arm64.c b/kexec/arch/arm64/kexec-arm64.c 25diff --git a/kexec/arch/arm64/kexec-arm64.c b/kexec/arch/arm64/kexec-arm64.c
26index 7a12479..8a7f5c5 100644 26index b143e86..88d4168 100644
27--- a/kexec/arch/arm64/kexec-arm64.c 27--- a/kexec/arch/arm64/kexec-arm64.c
28+++ b/kexec/arch/arm64/kexec-arm64.c 28+++ b/kexec/arch/arm64/kexec-arm64.c
29@@ -16,7 +16,11 @@ 29@@ -16,7 +16,11 @@
@@ -54,8 +54,5 @@ index 7a12479..8a7f5c5 100644
54+ GRND_NONBLOCK); 54+ GRND_NONBLOCK);
55+#endif 55+#endif
56 if(result == -1) { 56 if(result == -1) {
57 dbgprintf("%s: Reading random bytes failed.\n", 57 fprintf(stderr, "%s: Reading random bytes failed.\n",
58 __func__); 58 __func__);
59--
602.7.4
61