diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-10-31 18:22:08 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-11-02 07:52:25 +0100 |
commit | 3b42c17a7e264ce4b351d2de205d4c39f725af0f (patch) | |
tree | 9c87205ea068029c3bc3464fa887d4054e9a2fea /arch/s390/Makefile | |
parent | b82a5e4ea8f6de3cae47fc6223b1372fcf8f1081 (diff) | |
download | linux-3b42c17a7e264ce4b351d2de205d4c39f725af0f.tar.bz2 |
s390: pass endianness info to sparse
s390 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, depending on the
building machine endianness.
Fix this by letting sparse know about the architecture endianness.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/Makefile')
-rw-r--r-- | arch/s390/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/Makefile b/arch/s390/Makefile index dac821cfcd43..64c2fe9dcfbe 100644 --- a/arch/s390/Makefile +++ b/arch/s390/Makefile @@ -21,7 +21,7 @@ KBUILD_CFLAGS += -m64 KBUILD_AFLAGS += -m64 UTS_MACHINE := s390x STACK_SIZE := 16384 -CHECKFLAGS += -D__s390__ -D__s390x__ +CHECKFLAGS += -D__s390__ -D__s390x__ -mbig-endian export LD_BFD |