mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
net: wireless: rockchip: rtl8723cs: fix and ignore clang warning
drivers/net/wireless/rockchip_wlan/rtl8723cs/os_dep/linux/rtw_cfgvendor.c:177:25: warning: implicit conversion from 'unsigned int' to 'u16' (aka 'unsigned short') changes value from 4718624 to 32 [-Wconstant-conversion]
kflags = in_atomic() ? GFP_ATOMIC : GFP_KERNEL;
~ ^~~~~~~~~~
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2ade593775f56ef2276ff9e13aed5c0bb70132d6
This commit is contained in:
@@ -16,6 +16,11 @@ EXTRA_CFLAGS += -Wno-unused-function
|
||||
EXTRA_CFLAGS += -Wno-unused
|
||||
#EXTRA_CFLAGS += -Wno-uninitialized
|
||||
|
||||
EXTRA_CFLAGS += -Wno-parentheses-equality
|
||||
EXTRA_CFLAGS += -Wno-pointer-bool-conversion
|
||||
EXTRA_CFLAGS += -Wno-self-assign
|
||||
EXTRA_CFLAGS += -Wno-unused-const-variable
|
||||
|
||||
GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
|
||||
ifeq ($(GCC_VER_49),1)
|
||||
EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later
|
||||
|
||||
@@ -171,7 +171,7 @@ struct sk_buff *rtw_cfg80211_vendor_event_alloc(
|
||||
int rtw_cfgvendor_send_async_event(struct wiphy *wiphy,
|
||||
struct net_device *dev, int event_id, const void *data, int len)
|
||||
{
|
||||
u16 kflags;
|
||||
gfp_t kflags;
|
||||
struct sk_buff *skb;
|
||||
|
||||
kflags = in_atomic() ? GFP_ATOMIC : GFP_KERNEL;
|
||||
|
||||
Reference in New Issue
Block a user