aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/Makefile
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2017-12-13 09:21:59 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2017-12-13 16:57:02 +0100
commit366d8216488319ed29308b977cd62b7964a779b7 (patch)
treea2191cf80334f5f96d65e78e92253ac266859591 /drivers/s390/char/Makefile
parents390/pci: handle insufficient resources during dma tlb flush (diff)
downloadlinux-dev-366d8216488319ed29308b977cd62b7964a779b7.tar.xz
linux-dev-366d8216488319ed29308b977cd62b7964a779b7.zip
s390/sclp: disable FORTIFY_SOURCE for early sclp code
Michal Suchánek reported the following compile error with FORTIFY_SOURCE enabled: drivers/s390/char/sclp_early_core.o: In function `memcpy': include/linux/string.h:340: undefined reference to `fortify_panic' To fix this simply disable FORTIFY_SOURCE on the early sclp code as well, which I forgot on the initial commit. Fixes: 79962038dffa ("s390: add support for FORTIFY_SOURCE") Reported-by: Michal Suchánek <msuchanek@suse.de> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/Makefile')
-rw-r--r--drivers/s390/char/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/char/Makefile b/drivers/s390/char/Makefile
index 05ac6ba15a53..614b44e70a28 100644
--- a/drivers/s390/char/Makefile
+++ b/drivers/s390/char/Makefile
@@ -17,6 +17,8 @@ CFLAGS_REMOVE_sclp_early_core.o += $(CC_FLAGS_MARCH)
CFLAGS_sclp_early_core.o += -march=z900
endif
+CFLAGS_sclp_early_core.o += -D__NO_FORTIFY
+
obj-y += ctrlchar.o keyboard.o defkeymap.o sclp.o sclp_rw.o sclp_quiesce.o \
sclp_cmd.o sclp_config.o sclp_cpi_sys.o sclp_ocf.o sclp_ctl.o \
sclp_early.o sclp_early_core.o