]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: rtl8192u: use gfp_t instead of int
authorTeodora Baluta <teobaluta@gmail.com>
Wed, 16 Oct 2013 20:53:33 +0000 (23:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2013 01:53:42 +0000 (18:53 -0700)
This patch fixes the following type of sparse warnings:

drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c:247:17: warning: incorrect type in argument 2 (different base types)
drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c:247:17:    expected restricted gfp_t [usertype] flags
drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c:247: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/rtl8192u/ieee80211/ieee80211_tx.c

index d5dae74ec67cce3c57601f5c51aac3ea33ffdab1..682659a749b652060c9dd95ccf6d4f0f04d97bc1 100644 (file)
@@ -238,7 +238,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;