Skip to content

Commit ebcc592

Browse files
Dave Martinwildea01
authored andcommitted
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>
1 parent 2b55d83 commit ebcc592

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm64/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ endif
5151

5252
KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr) $(brokengasinst)
5353
KBUILD_CFLAGS += -fno-asynchronous-unwind-tables
54+
KBUILD_CFLAGS += -Wno-psabi
5455
KBUILD_AFLAGS += $(lseinstr) $(brokengasinst)
5556

5657
KBUILD_CFLAGS += $(call cc-option,-mabi=lp64)

0 commit comments

Comments
 (0)