mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
cxl: fix build for GCC 4.6.x
GCC 4.6.3 does not support -Wno-unused-const-variable. Instead, use the
kbuild infrastructure that checks if this options exists.
Fixes: 2cd55c68c0 ("cxl: Fix build failure due to -Wunused-variable behaviour change")
Suggested-by: Michal Marek <[email protected]>
Suggested-by: Arnd Bergmann <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
e708c24cd0
commit
aa09545589
1 changed files with 1 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
ccflags-y := -Werror -Wno-unused-const-variable
|
||||
ccflags-y := -Werror $(call cc-disable-warning, unused-const-variable)
|
||||
|
||||
cxl-y += main.o file.o irq.o fault.o native.o
|
||||
cxl-y += context.o sysfs.o debugfs.o pci.o trace.o
|
||||
|
|
|
|||
Loading…
Reference in a new issue