Skip to content

Commit

Permalink
cxl: fix build for GCC 4.6.x
Browse files Browse the repository at this point in the history
GCC 4.6.3 does not support -Wno-unused-const-variable. Instead, use the
kbuild infrastructure that checks if this options exists.

Fixes: 2cd55c6 ("cxl: Fix build failure due to -Wunused-variable behaviour change")
Suggested-by: Michal Marek <mmarek@suse.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Brian Norris authored and Michael Ellerman committed Jan 11, 2016
1 parent e708c24 commit aa09545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/cxl/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit aa09545

Please sign in to comment.