diff options
author | Victor Fusco <victor@cetuc.puc-rio.br> | 2005-07-18 13:36:38 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-18 13:36:38 -0700 |
commit | e2bf521d9728bfae9b6c3d484614e5962d0b5afd (patch) | |
tree | 74a126835dc9e26fbca5080214f3cc1bb4f7c5ea /include/linux/skbuff.h | |
parent | 37da647d994cdac7e0bc8d2a365fbda403939a2b (diff) | |
download | lwn-e2bf521d9728bfae9b6c3d484614e5962d0b5afd.tar.gz lwn-e2bf521d9728bfae9b6c3d484614e5962d0b5afd.zip |
[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.h | 3 |
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, * * %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)) { |