summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Martin <Dave.Martin@arm.com>2019-06-06 11:33:43 +0100
committerSeung-Woo Kim <sw0312.kim@samsung.com>2019-12-31 12:25:29 +0900
commitb0f8cd6d96c7797b296c61a3b6d768da85e35525 (patch)
treed87859d4529281b427c5bab11a6b07a5e2504667
parent4c2a98b6a0947397928e80245e2516ed5f987cbd (diff)
downloadlinux-artik7-b0f8cd6d96c7797b296c61a3b6d768da85e35525.tar.gz
linux-artik7-b0f8cd6d96c7797b296c61a3b6d768da85e35525.tar.bz2
linux-artik7-b0f8cd6d96c7797b296c61a3b6d768da85e35525.zip
arm64: Silence gcc warnings about arch ABI drift
Since GCC 9, the compiler warns about evolution of the platform-specific ABI, in particular relating for the marshaling of certain structures involving bitfields. The kernel is a standalone binary, and of course nobody would be so stupid as to expose structs containing bitfields as function arguments in ABI. (Passing a pointer to such a struct, however inadvisable, should be unaffected by this change. perf and various drivers rely on that.) So these warnings do more harm than good: turn them off. We may miss warnings about future ABI drift, but that's too bad. Future ABI breaks of this class will have to be debugged and fixed the traditional way unless the compiler evolves finer-grained diagnostics. Signed-off-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> [sw0312.kim: backport mainline commit ebcc5928c5d9 for gcc 9 build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: I2ef030a3eb5aa37486d642161588f48fb69875f5
-rw-r--r--arch/arm64/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index fb4ac87fc398..e742564e461a 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -28,6 +28,7 @@ endif
KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr)
KBUILD_CFLAGS += $(call cc-option, -mpc-relative-literal-loads)
+KBUILD_CFLAGS += -Wno-psabi
KBUILD_AFLAGS += $(lseinstr)
ifeq ($(CONFIG_CPU_BIG_ENDIAN), y)