Thread (7 messages) flat view 7 messages, 2 authors, 2011-02-23
STALE5643d

[PATCH 5/5] em_meta: fix sparse warning

From: Stephen Hemminger <hidden>
Date: 2011-02-23 19:53:00

gfp_t needs to be cast to integer.

Signed-off-by: Stephen Hemminger <redacted>
--- a/net/sched/em_meta.c	2011-02-23 10:26:17.534042646 -0800
+++ b/net/sched/em_meta.c	2011-02-23 10:30:37.533063770 -0800
@@ -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)

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help