From: Victor Fusco Date: Mon, 18 Jul 2005 20:36:38 +0000 (-0700) Subject: [NET]: Fix "nocast type" warnings in skbuff.h X-Git-Tag: v2.6.13-rc4~84^2~30 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e2bf521d9728bfae9b6c3d484614e5962d0b5afd;p=~emulex%2Finfiniband.git [NET]: Fix "nocast type" warnings in skbuff.h From: Victor Fusco Fix the sparse warning "implicit cast to nocast type" Signed-off-by: Victor Fusco Signed-off-by: Domen Puncer Signed-off-by: David S. Miller --- diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 5d4a990d557..0061c947048 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -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)) {