Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37da647d authored by Victor Fusco's avatar Victor Fusco Committed by David S. Miller
Browse files

[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: default avatarVictor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 23af27eb
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
};