Skip to contentSkip to conversation

linux-next: build failure after merge of the netfilter tree

PATCH Applied Stephen Rothwell 3 participants 3 messages Apr 16, 2018 – Apr 17, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the netfilter tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

net/netfilter/nf_conntrack_extend.c: In function 'nf_ct_ext_
add':
net/netfilter/nf_conntrack_extend.c:74:2: error: implicit declaration of function 'kmemleak_not_leak' [-Werror=implicit-function-declaration]
kmemleak_not_leak(old);
^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

Caused by commit

114aa35d06d4 ("netfilter: conntrack: silent a memory leak warning")

I have added this patch for today:

From: Stephen Rothwell <[email protected]>
Date: Tue, 17 Apr 2018 09:26:49 +1000
Subject: [PATCH] netfilter: conntrack: include kmemleak.h for
kmemleak_not_leak()

---
 net/netfilter/nf_conntrack_extend.c | 1 +
 1 file changed, 1 insertion(+)
net/netfilter/nf_conntrack_extend.c +1 -0
index bd71a828ebde..277bbfe26478 100644
@@ -9,6 +9,7 @@
  *      2 of the License, or (at your option) any later version.
  */
 #include <linux/kernel.h>
+#include <linux/kmemleak.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/rcupdate.h>
Signature · 5 lines
2.16.3

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 12 lines · Stephen Rothwell

Hi all,

After merging the netfilter tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

net/netfilter/nf_conntrack_extend.c: In function 'nf_ct_ext_
add':
net/netfilter/nf_conntrack_extend.c:74:2: error: implicit declaration of function 'kmemleak_not_leak' [-Werror=implicit-function-declaration]
kmemleak_not_leak(old);
^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

Quoted 5 lines

Caused by commit

114aa35d06d4 ("netfilter: conntrack: silent a memory leak warning")

I have added this patch for today:

Ouch, this is actually a correct fix.

Can you please send it formally or maybe Pablo can just take it directly?

Thanks!

maintainer Applied
#2 lore raw
Quoted 15 lines · Cong Wang
Quoted 14 lines · Stephen Rothwell

Hi all,

After merging the netfilter tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

net/netfilter/nf_conntrack_extend.c: In function 'nf_ct_ext_
add':
net/netfilter/nf_conntrack_extend.c:74:2: error: implicit declaration of function 'kmemleak_not_leak' [-Werror=implicit-function-declaration]
kmemleak_not_leak(old);
^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

Caused by commit

Quoted 7 lines
Quoted 3 lines

114aa35d06d4 ("netfilter: conntrack: silent a memory leak warning")

I have added this patch for today:

Ouch, this is actually a correct fix.

Can you please send it formally or maybe Pablo can just take it directly?

I have applied Stephen's patch, thanks!