Skip to content

Commit

Permalink
[NETFILTER]: fix sparse gfp nocast warnings
Browse files Browse the repository at this point in the history
Fix implicit nocast warnings in nfnetlink code:
net/netfilter/nfnetlink.c:204:43: warning: implicit cast to nocast type

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Randy Dunlap authored and David S. Miller committed Oct 5, 2005
1 parent 8eea00a commit c6f4faf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/netfilter/nfnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 allocation = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL;
unsigned int __nocast allocation =
in_interrupt() ? GFP_ATOMIC : GFP_KERNEL;
int err = 0;

NETLINK_CB(skb).dst_group = group;
Expand Down

0 comments on commit c6f4faf

Please sign in to comment.