staging: rtl8187se: use gfp_t instead of int
authorTeodora Baluta <teobaluta@gmail.com>
Sat, 19 Oct 2013 18:09:45 +0000 (21:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Oct 2013 21:54:49 +0000 (14:54 -0700)
Fix the following type of sparse warnings:

drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c:249:17: warning: incorrect type in argument 2 (different base types)
drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c:249:17:    expected restricted gfp_t [usertype] flags
drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c:249:17:    got int [signed] gfp_mask

Signed-off-by: Teodora Baluta <teobaluta@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c

index b3466530cf9429a44dba589f3322ba4c2a6a1ca3..bc338a52eafeefef392a7ccfcb2529db267ac7d5 100644 (file)
@@ -240,7 +240,7 @@ void ieee80211_txb_free(struct ieee80211_txb *txb) {
 }
 
 struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size,
-                                         int gfp_mask)
+                                         gfp_t gfp_mask)
 {
        struct ieee80211_txb *txb;
        int i;