aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorVictor Fusco <victor@cetuc.puc-rio.br>2005-07-18 16:36:38 -0400
committerDavid S. Miller <davem@davemloft.net>2005-07-18 16:36:38 -0400
commite2bf521d9728bfae9b6c3d484614e5962d0b5afd (patch)
tree74a126835dc9e26fbca5080214f3cc1bb4f7c5ea /include/linux/skbuff.h
parent37da647d994cdac7e0bc8d2a365fbda403939a2b (diff)
[NET]: Fix "nocast type" warnings in skbuff.h
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>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 5d4a990d5577..0061c9470482 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,
502 * 502 *
503 * %NULL is returned on a memory allocation failure. 503 * %NULL is returned on a memory allocation failure.
504 */ 504 */
505static inline struct sk_buff *skb_unshare(struct sk_buff *skb, int pri) 505static inline struct sk_buff *skb_unshare(struct sk_buff *skb,
506 unsigned int __nocast pri)
506{ 507{
507 might_sleep_if(pri & __GFP_WAIT); 508 might_sleep_if(pri & __GFP_WAIT);
508 if (skb_cloned(skb)) { 509 if (skb_cloned(skb)) {