Skip to content

Commit a2209b7

Browse files
jbeulichingomolnar
authored andcommitted
x86/build: Fix build with older GCC versions
Older GCC (observed with 4.1.x) doesn't support -Wno-override-init and also doesn't ignore unknown -Wno-* options. Signed-off-by: Jan Beulich <jbeulich@suse.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Valdis Kletnieks <valdis.kletnieks@vt.edu> Cc: Valdis.Kletnieks@vt.edu Fixes: 5e44258 "x86/build: Reduce the W=1 warnings noise when compiling x86 syscall tables" Link: http://lkml.kernel.org/r/580E3E1C02000078001191C4@prv-mh.provo.novell.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 7fbe6ac commit a2209b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/x86/entry/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
OBJECT_FILES_NON_STANDARD_entry_$(BITS).o := y
66
OBJECT_FILES_NON_STANDARD_entry_64_compat.o := y
77

8-
CFLAGS_syscall_64.o += -Wno-override-init
9-
CFLAGS_syscall_32.o += -Wno-override-init
8+
CFLAGS_syscall_64.o += $(call cc-option,-Wno-override-init,)
9+
CFLAGS_syscall_32.o += $(call cc-option,-Wno-override-init,)
1010
obj-y := entry_$(BITS).o thunk_$(BITS).o syscall_$(BITS).o
1111
obj-y += common.o
1212

0 commit comments

Comments
 (0)