]> git.karo-electronics.de Git - linux-beck.git/commitdiff
s390/boot: fix boot of compressed kernel built with gcc 4.9
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 23 May 2014 11:18:27 +0000 (13:18 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 27 May 2014 08:26:04 +0000 (10:26 +0200)
Add -fno-delete-null-pointer-checks to CFLAGS for the code in
arch/s390/boot. Without the option a compressed kernel built with
gcc 4.9 won't boot.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/boot/compressed/Makefile

index 866ecbe670e499632ef59d514dd04a280f46b890..f90d1fc6d603a5571ee8a6302a62dc8730b04aa1 100644 (file)
@@ -12,7 +12,7 @@ targets += misc.o piggy.o sizes.h head$(BITS).o
 
 KBUILD_CFLAGS := -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2
 KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
-KBUILD_CFLAGS += $(cflags-y)
+KBUILD_CFLAGS += $(cflags-y) -fno-delete-null-pointer-checks
 KBUILD_CFLAGS += $(call cc-option,-mpacked-stack)
 KBUILD_CFLAGS += $(call cc-option,-ffreestanding)