diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2005-10-05 01:42:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-10-05 01:42:42 -0400 |
commit | c6f4fafccfa66f0530587ac3c11bb8fd0b8fe8ab (patch) | |
tree | 7edee8933af05fc6d22cfde08cfc75a5c5b7e8e6 /net | |
parent | 8eea00a44d9f493869f8d30b72e3ed18475be556 (diff) |
[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: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nfnetlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c index 49a3900e3d32..34d671974a4d 100644 --- a/net/netfilter/nfnetlink.c +++ b/net/netfilter/nfnetlink.c | |||
@@ -195,7 +195,8 @@ nfnetlink_check_attributes(struct nfnetlink_subsystem *subsys, | |||
195 | 195 | ||
196 | int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo) | 196 | int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo) |
197 | { | 197 | { |
198 | int allocation = in_interrupt() ? GFP_ATOMIC : GFP_KERNEL; | 198 | unsigned int __nocast allocation = |
199 | in_interrupt() ? GFP_ATOMIC : GFP_KERNEL; | ||
199 | int err = 0; | 200 | int err = 0; |
200 | 201 | ||
201 | NETLINK_CB(skb).dst_group = group; | 202 | NETLINK_CB(skb).dst_group = group; |