summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorDave Martin <Dave.Martin@arm.com>2019-06-06 11:33:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-25 11:35:59 +0800
commit71d019a6dae90e0f6e41152fc7962791241e1aaa (patch)
treef7e3d400290be781d8ad8f066b37c3a04d835781 /arch/arm64
parentd72a4c78c124dfd9fdb6a0404075e5e8fbfaa1ca (diff)
downloadlinux-stable-71d019a6dae90e0f6e41152fc7962791241e1aaa.tar.gz
linux-stable-71d019a6dae90e0f6e41152fc7962791241e1aaa.tar.bz2
linux-stable-71d019a6dae90e0f6e41152fc7962791241e1aaa.zip
arm64: Silence gcc warnings about arch ABI drift
[ Upstream commit ebcc5928c5d925b1c8d968d9c89cdb0d0186db17 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index 35649ee8ad56..c12ff63265a9 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -51,6 +51,7 @@ endif
KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr) $(brokengasinst)
KBUILD_CFLAGS += -fno-asynchronous-unwind-tables
+KBUILD_CFLAGS += -Wno-psabi
KBUILD_AFLAGS += $(lseinstr) $(brokengasinst)
KBUILD_CFLAGS += $(call cc-option,-mabi=lp64)