OSDN Git Service

net: wireless: bcmdhd: Do not treat warnings as errors on x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 4 Aug 2011 07:02:48 +0000 (15:02 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 27 Aug 2011 10:58:42 +0000 (18:58 +0800)
The x86 uaccess_32.h declares with attribute warning in copy_from_user(),
therefore generates errors on compiling the bcmdhd driver.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
drivers/net/wireless/bcmdhd/Makefile

index e82c985..6f9d31a 100644 (file)
@@ -10,6 +10,10 @@ DHDCFLAGS = -Wall -Wstrict-prototypes -Dlinux -DBCMDRIVER                     \
        -DEMBEDDED_PLATFORM -DENABLE_INSMOD_NO_FW_LOAD -DPNO_SUPPORT          \
        -Idrivers/net/wireless/bcmdhd -Idrivers/net/wireless/bcmdhd/include
 
+ifneq ($(ARCH),x86)
+DHDCFLAGS += -Werror
+endif
+
 DHDOFILES = aiutils.o bcmsdh_sdmmc_linux.o dhd_linux.o siutils.o bcmutils.o   \
        dhd_linux_sched.o bcmwifi.o dhd_sdio.o bcmevent.o dhd_bta.o hndpmu.o  \
        bcmsdh.o dhd_cdc.o bcmsdh_linux.o dhd_common.o linux_osl.o            \