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

Commit c6f4fafc authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller
Browse files

[NETFILTER]: fix sparse gfp nocast warnings



Fix implicit nocast warnings in nfnetlink code:
net/netfilter/nfnetlink.c:204:43: warning: implicit cast to nocast type

Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8eea00a4
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -195,7 +195,8 @@ nfnetlink_check_attributes(struct nfnetlink_subsystem *subsys,


int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo)
int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo)
{
{
	int allocation = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL;
	unsigned int __nocast allocation =
			in_interrupt() ? GFP_ATOMIC : GFP_KERNEL;
	int err = 0;
	int err = 0;


	NETLINK_CB(skb).dst_group = group;
	NETLINK_CB(skb).dst_group = group;