blob: a3b7789ebaadb2fbd44215f9769450dc944676af [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From 3fd4db2ce1710f45eb297ae6b2c10726b33204f3 Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Andrea Adami <andrea.adami@gmail.com>
3Date: Sun, 29 Apr 2018 00:46:16 +0200
Brad Bishop26bdd442019-08-16 17:08:17 -04004Subject: [PATCH] arm64: crashdump-arm64.c: fix warning
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005
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+
90481e9ed61-r0/recipe-sysroot/usr/lib/klibc/include/klibc/compiler.h:144:0: warni
10ng: "__bitwise" redefined
11 # define __bitwise
12
13Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Brad Bishop26bdd442019-08-16 17:08:17 -040014
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080015---
Patrick Williams520786c2023-06-25 16:20:36 -050016Upstream-Status: Pending
17
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080018 kexec/arch/arm64/crashdump-arm64.c | 3 +++
19 1 file changed, 3 insertions(+)
20
21diff --git a/kexec/arch/arm64/crashdump-arm64.c b/kexec/arch/arm64/crashdump-arm64.c
22index 4fd7aa8..890d88f 100644
23--- a/kexec/arch/arm64/crashdump-arm64.c
24+++ b/kexec/arch/arm64/crashdump-arm64.c
25@@ -13,6 +13,9 @@
26 #define _GNU_SOURCE
27
28 #include <errno.h>
29+#ifdef __KLIBC__
30+#include <sys/types.h>
31+#endif
32 #include <linux/elf.h>
33
34 #include "kexec.h"