[NET]: Fix "nocast type" warnings in skbuff.h
authorVictor Fusco <victor@cetuc.puc-rio.br>
Mon, 18 Jul 2005 20:36:38 +0000 (13:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2005 20:36:38 +0000 (13:36 -0700)
From: Victor Fusco <victor@cetuc.puc-rio.br>

Fix the sparse warning "implicit cast to nocast type"

Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h

index 5d4a990d5577b15dfc2fdeb14174969f184830fb..0061c9470482df8e91ad877e7348dad4db731f5e 100644 (file)
@@ -502,7 +502,8 @@ static inline struct sk_buff *skb_share_check(struct sk_buff *skb,
  *
  *     %NULL is returned on a memory allocation failure.
  */
-static inline struct sk_buff *skb_unshare(struct sk_buff *skb, int pri)
+static inline struct sk_buff *skb_unshare(struct sk_buff *skb,
+                                         unsigned int __nocast pri)
 {
        might_sleep_if(pri & __GFP_WAIT);
        if (skb_cloned(skb)) {