From: Luc Van Oostenryck Date: Tue, 31 Oct 2017 17:21:59 +0000 (+0100) Subject: parisc: Pass endianness info to sparse X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3744d988c05a27f40408003352841aefadba1324;p=openwrt%2Fstaging%2Fblogic.git parisc: Pass endianness info to sparse parisc is big-endian only but sparse assumes the same endianness as the building machine. This is problematic for code which expect __BYTE_ORDER__ being correctly predefined by the compiler which sparse can then pre-process differently from what gcc would. Fix this by letting sparse know about the architecture endianness. To: James Bottomley To: Helge Deller CC: linux-parisc@vger.kernel.org Signed-off-by: Luc Van Oostenryck Signed-off-by: Helge Deller --- diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index 01946ebaff72..e2364ff59180 100644 --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile @@ -22,7 +22,7 @@ KBUILD_IMAGE := vmlinuz KBUILD_DEFCONFIG := default_defconfig NM = sh $(srctree)/arch/parisc/nm -CHECKFLAGS += -D__hppa__=1 +CHECKFLAGS += -D__hppa__=1 -mbig-endian LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) export LIBGCC