From: Bruno Martins Date: Sun, 22 Oct 2023 16:44:56 +0000 (+0100) Subject: rtl88x2CS: Resolve constant-conversion errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9406eeb2919ba993e46cf46ea3abfa19832a7af3;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_rtl8822cs.git rtl88x2CS: Resolve constant-conversion errors Change-Id: I7909337b42dfc39ad4fab5f74341d5614afb150a --- 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;