em_meta: fix sparse warning
authorstephen hemminger <shemminger@vyatta.com>
Wed, 23 Feb 2011 09:06:52 +0000 (09:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2011 22:11:33 +0000 (14:11 -0800)
gfp_t needs to be cast to integer.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/em_meta.c

index a889d099320f1a11a74a8bff69c7fc05d6fd35c1..e5e17478267766efc6ceecb46186086760fb988c 100644 (file)
@@ -401,7 +401,7 @@ META_COLLECTOR(int_sk_sndbuf)
 META_COLLECTOR(int_sk_alloc)
 {
        SKIP_NONLOCAL(skb);
-       dst->value = skb->sk->sk_allocation;
+       dst->value = (__force int) skb->sk->sk_allocation;
 }
 
 META_COLLECTOR(int_sk_route_caps)