net: fix compile error of leaking kmemleak.h header
Subsystems (3)
PATCH 1/1 net: fix compile error of leaking kmemleak.h header
From: Shan Wei <[email protected]>
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
--- net/core/sysctl_net_core.c | 1 + net/ipv4/route.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
net/core/sysctl_net_core.c +1 -0
@@ -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>
net/ipv4/route.c +1 -0
@@ -109,6 +109,7 @@#include <net/rtnetlink.h> #ifdef CONFIG_SYSCTL #include <linux/sysctl.h> +#include <linux/kmemleak.h> #endif #include <net/secure_seq.h>
Signature · 1 line
1.7.1
Shan Wei said, at 2012/4/19 12:05:
Quoted 6 lines
From: Shan Wei <[email protected]>
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
This is for net-next.....
From: Shan Wei <[email protected]>
Date: Thu, 19 Apr 2012 12:05:46 +0800
Quoted 8 lines
From: Shan Wei <[email protected]>
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.cSigned-off-by Shan Wei <[email protected]>
Applied, thanks.
Quoted 30 lines · Shan Wei
From: Shan Wei <[email protected]>
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.cSigned-off-by Shan Wei <[email protected]>--- net/core/sysctl_net_core.c | 1 + net/ipv4/route.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)net/core/sysctl_net_core.c +1
-0@@ -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> net/ipv4/route.c +0
-0
net/ipv4/route.c line 115
Quoted 7 lines
net/ipv4/route.c +1
-0@@ -109,6 +109,7 @@#include <net/rtnetlink.h> #ifdef CONFIG_SYSCTL #include <linux/sysctl.h> +#include <linux/kmemleak.h> #endif #include <net/secure_seq.h>
yep, SLAB doesnt include it like SLUB