diff options
author | Brian Norris <computersforpeace@gmail.com> | 2016-01-08 21:30:09 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-01-11 12:30:52 +0300 |
commit | aa09545589ceeff884421d8eb38d04963190afbe (patch) | |
tree | ed5ae717a4f30343d45e77c77934885610a5aac3 | |
parent | e708c24cd01ce80b1609d8baccee40ccc3608a01 (diff) | |
download | linux-aa09545589ceeff884421d8eb38d04963190afbe.tar.xz |
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: 2cd55c68c0a4 ("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>
-rw-r--r-- | drivers/misc/cxl/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/cxl/Makefile b/drivers/misc/cxl/Makefile index 6982f603fadc..ab6f392d3504 100644 --- a/drivers/misc/cxl/Makefile +++ b/drivers/misc/cxl/Makefile @@ -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 |