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>
-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 \