From 9406eeb2919ba993e46cf46ea3abfa19832a7af3 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sun, 22 Oct 2023 17:44:56 +0100 Subject: [PATCH] rtl88x2CS: Resolve constant-conversion errors Change-Id: I7909337b42dfc39ad4fab5f74341d5614afb150a --- rtl88x2CS/os_dep/linux/rtw_cfgvendor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl88x2CS/os_dep/linux/rtw_cfgvendor.c b/rtl88x2CS/os_dep/linux/rtw_cfgvendor.c index d906163..6991f03 100644 --- a/rtl88x2CS/os_dep/linux/rtw_cfgvendor.c +++ b/rtl88x2CS/os_dep/linux/rtw_cfgvendor.c @@ -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; @@ -394,7 +394,7 @@ exit: int rtw_cfgvendor_send_hotlist_event(struct wiphy *wiphy, struct net_device *dev, void *data, int len, rtw_vendor_event_t event) { - u16 kflags; + gfp_t kflags; const void *ptr; struct sk_buff *skb; int malloc_len, total, iter_cnt_to_send, cnt; -- 2.20.1