Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1304875
| From | Brian Norris <computersforpeace@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 1/2] cxl: fix build for GCC 4.6.x |
| Date | 2016-01-08 19:40 +0100 |
| Message-ID | <qOK78-2eA-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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>
---
v2: don't remove -Werror
drivers/misc/cxl/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.6.0.rc2.230.g3dd15c0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v2 1/2] cxl: fix build for GCC 4.6.x Brian Norris <computersforpeace@gmail.com> - 2016-01-08 19:40 +0100
[PATCH v2 2/2] cxl: use -Werror only with CONFIG_PPC_WERROR Brian Norris <computersforpeace@gmail.com> - 2016-01-08 19:40 +0100
Re: [v2,2/2] cxl: use -Werror only with CONFIG_PPC_WERROR Michael Ellerman <mpe@ellerman.id.au> - 2016-01-12 13:40 +0100
Re: [v2,1/2] cxl: fix build for GCC 4.6.x Michael Ellerman <mpe@ellerman.id.au> - 2016-01-12 13:40 +0100
csiph-web