summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-10-31 18:21:59 +0100
committerHelge Deller <deller@gmx.de>2017-11-17 15:27:33 +0100
commit3744d988c05a27f40408003352841aefadba1324 (patch)
treef3c77aba4184af7ebfb463fa551334109be5970d /arch
parentbf7b4c1b3c92f246a535a7c792177041d0442011 (diff)
downloadop-kernel-dev-3744d988c05a27f40408003352841aefadba1324.zip
op-kernel-dev-3744d988c05a27f40408003352841aefadba1324.tar.gz
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 <jejb@parisc-linux.org> To: Helge Deller <deller@gmx.de> CC: linux-parisc@vger.kernel.org Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/parisc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
index 01946eb..e2364ff 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
OpenPOWER on IntegriCloud