diff options
author | Victor Fusco <victor@cetuc.puc-rio.br> | 2005-07-18 16:35:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-18 16:35:43 -0400 |
commit | 37da647d994cdac7e0bc8d2a365fbda403939a2b (patch) | |
tree | 914de5c0c11403014db2a202ce1338a19edc6d48 | |
parent | 23af27eb8fa9ea8614138c4cded7a16cb4197a55 (diff) |
[NETLINK]: Fix "nocast type" warnings
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>
-rw-r--r-- | net/netlink/af_netlink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 3405fdf41b93..ff774a06c89d 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -648,7 +648,8 @@ void netlink_detachskb(struct sock *sk, struct sk_buff *skb) | |||
648 | sock_put(sk); | 648 | sock_put(sk); |
649 | } | 649 | } |
650 | 650 | ||
651 | static inline struct sk_buff *netlink_trim(struct sk_buff *skb, int allocation) | 651 | static inline struct sk_buff *netlink_trim(struct sk_buff *skb, |
652 | unsigned int __nocast allocation) | ||
652 | { | 653 | { |
653 | int delta; | 654 | int delta; |
654 | 655 | ||
@@ -717,7 +718,7 @@ struct netlink_broadcast_data { | |||
717 | int failure; | 718 | int failure; |
718 | int congested; | 719 | int congested; |
719 | int delivered; | 720 | int delivered; |
720 | int allocation; | 721 | unsigned int allocation; |
721 | struct sk_buff *skb, *skb2; | 722 | struct sk_buff *skb, *skb2; |
722 | }; | 723 | }; |
723 | 724 | ||