summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-02-27 06:55:06 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2013-03-06 21:25:48 (GMT)
commit6f56b06e74e2805577bf7940dc0fb17b3310d6b6 (patch)
treef1969530a209d56bada5c97ef7964c4a64dc5cff /drivers
parent4ba910db199779470685dd962d626e1ffc657f7e (diff)
downloadlinux-fsl-qoriq-6f56b06e74e2805577bf7940dc0fb17b3310d6b6.tar.xz
drivers/net/wireless/ath/wil6210: Makefile, only -Werror when no -W* in EXTRA_CFLAGS
When make with EXTRA_CFLAGS=-W, it will report error. so give a check in Makefile. Signed-off-by: Chen Gang <gang.chen@asianux.com> Acked-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/wil6210/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/Makefile b/drivers/net/wireless/ath/wil6210/Makefile
index 9396dc9..d288eea 100644
--- a/drivers/net/wireless/ath/wil6210/Makefile
+++ b/drivers/net/wireless/ath/wil6210/Makefile
@@ -9,5 +9,7 @@ wil6210-objs += wmi.o
wil6210-objs += interrupt.o
wil6210-objs += txrx.o
-subdir-ccflags-y += -Werror
+ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
+ subdir-ccflags-y += -Werror
+endif
subdir-ccflags-y += -D__CHECK_ENDIAN__