diff options
| author | Khem Raj <raj.khem@gmail.com> | 2019-03-15 00:22:40 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-03-15 09:17:11 -0700 |
| commit | 60f872278dde6156fcf73c19cce3fea295938a06 (patch) | |
| tree | 8f4df4f52c7428ba00e9ec4583b5dbaf84ad8872 /meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc | |
| parent | 3189c0dc8f9978ab8f9a4c4f40eead440a07df91 (diff) | |
| download | meta-openembedded-60f872278dde6156fcf73c19cce3fea295938a06.tar.gz | |
kexec-tools,kexec: Fix build with latest klibc
klibc has changed its signature of reboot() API
adapt the use here
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc')
| -rw-r--r-- | meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/klibc-reboot.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/klibc-reboot.patch b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/klibc-reboot.patch new file mode 100644 index 0000000000..be1301df68 --- /dev/null +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/klibc-reboot.patch | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | --- a/kexec/kexec.c | ||
| 2 | +++ b/kexec/kexec.c | ||
| 3 | @@ -901,7 +901,7 @@ static int my_exec(void) | ||
| 4 | if (xen_present()) | ||
| 5 | xen_kexec_exec(); | ||
| 6 | else | ||
| 7 | - reboot(LINUX_REBOOT_CMD_KEXEC); | ||
| 8 | + reboot(LINUX_REBOOT_CMD_KEXEC, NULL); | ||
| 9 | /* I have failed if I make it here */ | ||
| 10 | fprintf(stderr, "kexec failed: %s\n", | ||
| 11 | strerror(errno)); | ||
