]> err.no Git - linux-2.6/commitdiff
[NETFILTER]: fix sparse gfp nocast warnings
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 5 Oct 2005 05:42:42 +0000 (22:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Oct 2005 05:42:42 +0000 (22:42 -0700)
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>
net/netfilter/nfnetlink.c

index 49a3900e3d32b24d9ad91dc03340d62364d0ff25..34d671974a4d9522f7e6f393a2d5fa4b154b0df5 100644 (file)
@@ -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;