net: fix compile error of leaking kmemleak.h header
authorShan Wei <davidshan@tencent.com>
Wed, 18 Apr 2012 18:05:46 +0000 (18:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2012 04:11:39 +0000 (00:11 -0400)
net/core/sysctl_net_core.c: In function ‘sysctl_core_init’:
net/core/sysctl_net_core.c:259: error: implicit declaration of function ‘kmemleak_not_leak’

with same error in net/ipv4/route.c

Signed-off-by: Shan Wei <davidshan@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sysctl_net_core.c
net/ipv4/route.c

index cee5991902614cd6b226b92a7b90a7ee05be530d..247c69b7cfc23bacc22b2f377bd982d5020c4c0b 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/vmalloc.h>
 #include <linux/init.h>
 #include <linux/slab.h>
+#include <linux/kmemleak.h>
 
 #include <net/ip.h>
 #include <net/sock.h>
index bcd4744e0e4e478a714a3571bb37e73fab03b976..a1c115d750e99d5a0da206049a1416946610249d 100644 (file)
 #include <net/rtnetlink.h>
 #ifdef CONFIG_SYSCTL
 #include <linux/sysctl.h>
+#include <linux/kmemleak.h>
 #endif
 #include <net/secure_seq.h>