mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
[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>
This commit is contained in:
parent
23af27eb8f
commit
37da647d99
@ -648,7 +648,8 @@ void netlink_detachskb(struct sock *sk, struct sk_buff *skb)
|
||||
sock_put(sk);
|
||||
}
|
||||
|
||||
static inline struct sk_buff *netlink_trim(struct sk_buff *skb, int allocation)
|
||||
static inline struct sk_buff *netlink_trim(struct sk_buff *skb,
|
||||
unsigned int __nocast allocation)
|
||||
{
|
||||
int delta;
|
||||
|
||||
@ -717,7 +718,7 @@ struct netlink_broadcast_data {
|
||||
int failure;
|
||||
int congested;
|
||||
int delivered;
|
||||
int allocation;
|
||||
unsigned int allocation;
|
||||
struct sk_buff *skb, *skb2;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user