Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 1 | From 3fd4db2ce1710f45eb297ae6b2c10726b33204f3 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 2 | From: Andrea Adami <andrea.adami@gmail.com> |
| 3 | Date: Sun, 29 Apr 2018 00:46:16 +0200 |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 4 | Subject: [PATCH] arm64: crashdump-arm64.c: fix warning |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 5 | |
| 6 | from ../git/kexec/kexec.h:6, |
| 7 | from ../git/kexec/arch/arm64/crashdump-arm64.c:18: |
| 8 | /tmp/build/tmp-musl/work/aarch64-oe-linux-musl/kexec-tools-klibc/0.6+gitAUTOINC+ |
| 9 | 0481e9ed61-r0/recipe-sysroot/usr/lib/klibc/include/klibc/compiler.h:144:0: warni |
| 10 | ng: "__bitwise" redefined |
| 11 | # define __bitwise |
| 12 | |
| 13 | Signed-off-by: Andrea Adami <andrea.adami@gmail.com> |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 14 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 15 | --- |
| 16 | kexec/arch/arm64/crashdump-arm64.c | 3 +++ |
| 17 | 1 file changed, 3 insertions(+) |
| 18 | |
| 19 | diff --git a/kexec/arch/arm64/crashdump-arm64.c b/kexec/arch/arm64/crashdump-arm64.c |
| 20 | index 4fd7aa8..890d88f 100644 |
| 21 | --- a/kexec/arch/arm64/crashdump-arm64.c |
| 22 | +++ b/kexec/arch/arm64/crashdump-arm64.c |
| 23 | @@ -13,6 +13,9 @@ |
| 24 | #define _GNU_SOURCE |
| 25 | |
| 26 | #include <errno.h> |
| 27 | +#ifdef __KLIBC__ |
| 28 | +#include <sys/types.h> |
| 29 | +#endif |
| 30 | #include <linux/elf.h> |
| 31 | |
| 32 | #include "kexec.h" |