diff options
Diffstat (limited to 'meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0007-kexec.c-add-guard-around-ENOTSUP.patch')
| -rw-r--r-- | meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0007-kexec.c-add-guard-around-ENOTSUP.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0007-kexec.c-add-guard-around-ENOTSUP.patch b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0007-kexec.c-add-guard-around-ENOTSUP.patch new file mode 100644 index 0000000000..3d44683936 --- /dev/null +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0007-kexec.c-add-guard-around-ENOTSUP.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | From e6bd7a1bcfbd3e54efc81fbd7d60d915f9af0632 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andrea Adami <andrea.adami@gmail.com> | ||
| 3 | Date: Tue, 17 Apr 2018 11:35:14 +0200 | ||
| 4 | Subject: [PATCH] kexec.c: add guard around ENOTSUP | ||
| 5 | |||
| 6 | Fix | ||
| 7 | |||
| 8 | kexec.c: In function 'main': | ||
| 9 | kexec.c:1515:11: error: 'ENOTSUP' undeclared | ||
| 10 | |||
| 11 | Upstream-Status: Inappropriate [klibc specific] | ||
| 12 | Signed-off-by: Andrea Adami <andrea.adami@gmail.com> | ||
| 13 | |||
| 14 | --- | ||
| 15 | kexec/kexec.c | 2 ++ | ||
| 16 | 1 file changed, 2 insertions(+) | ||
| 17 | |||
| 18 | diff --git a/kexec/kexec.c b/kexec/kexec.c | ||
| 19 | index 313d9fe..b5a8a1e 100644 | ||
| 20 | --- a/kexec/kexec.c | ||
| 21 | +++ b/kexec/kexec.c | ||
| 22 | @@ -1501,6 +1501,7 @@ int main(int argc, char *argv[]) | ||
| 23 | */ | ||
| 24 | case -EINVAL: | ||
| 25 | case -ENOEXEC: | ||
| 26 | +#ifndef __KLIBC__ | ||
| 27 | /* | ||
| 28 | * ENOTSUP can be unsupported image | ||
| 29 | * type or unsupported PE signature | ||
| 30 | @@ -1513,6 +1514,7 @@ int main(int argc, char *argv[]) | ||
| 31 | * kernel bug | ||
| 32 | */ | ||
| 33 | case -ENOTSUP: | ||
| 34 | +#endif | ||
| 35 | do_kexec_file_syscall = 0; | ||
| 36 | break; | ||
| 37 | } | ||
