Skip to content

Commit

Permalink
parisc: Pass endianness info to sparse
Browse files Browse the repository at this point in the history
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 <[email protected]>
To: Helge Deller <[email protected]>
CC: [email protected]
Signed-off-by: Luc Van Oostenryck <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
  • Loading branch information
lucvoo authored and hdeller committed Nov 17, 2017
1 parent bf7b4c1 commit 3744d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3744d98

Please sign in to comment.