Skip to contentSkip to conversation

linux-next: build failure after merge of the akpm-current tree

PATCH Stephen Rothwell 2 participants 3 messages Jan 8, 2019

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

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (native perf) failed like this:

bench/numa.c: In function 'bind_to_node':
bench/numa.c:301:21: error: 'NUMA_NO_NODE' undeclared (first use in this function); did you mean 'NUMA_NUM_NODES'?

  if (target_node == NUMA_NO_NODE) {
                     ^~~~~~~~~~~~
                     NUMA_NUM_NODES

bench/numa.c:301:21: note: each undeclared identifier is reported only once for each function it appears in bench/numa.c: In function 'bind_to_memnode':
bench/numa.c:342:14: error: 'NUMA_NO_NODE' undeclared (first use in this function); did you mean 'NUMA_NUM_NODES'?
if (node == NUMA_NO_NODE)

              ^~~~~~~~~~~~
              NUMA_NUM_NODES
bench/numa.c: In function 'init_thread_data':
bench/numa.c:1366:19: error: 'NUMA_NO_NODE' undeclared (first use in this function); did you mean 'NUMA_NUM_NODES'?
   td->bind_node = NUMA_NO_NODE;
                   ^~~~~~~~~~~~
                   NUMA_NUM_NODES

Caused by commit

3856193d8452 ("tools/: replace open encodings for NUMA_NO_NODE")

[BTW, I did not write that patch, just added fixes last time] [BTW 2, there are lots of cc's that probably no longer apply since this was split form the previous patch]

I have applied the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Tue, 8 Jan 2019 13:08:32 +1100
Subject: [PATCH] tools/: fix for replace open encodings for NUMA_NO_NODE

---
 tools/perf/bench/numa.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/bench/numa.c +1 -0
index e0ad5f1de226..98ad783efc69 100644
@@ -34,6 +34,7 @@
 #include <sys/types.h>
 #include <linux/kernel.h>
 #include <linux/time64.h>
+#include <linux/numa.h>
 
 #include <numa.h>
 #include <numaif.h>
Signature · 5 lines
2.20.1

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

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (native perf) failed like this:

bench/numa.c: In function 'bind_to_node':
bench/numa.c:301:21: error: 'NUMA_NO_NODE' undeclared (first use in this function); did you mean 'NUMA_NUM_NODES'?

  if (target_node == NUMA_NO_NODE) {
                     ^~~~~~~~~~~~
                     NUMA_NUM_NODES

bench/numa.c:301:21: note: each undeclared identifier is reported only once for each function it appears in bench/numa.c: In function 'bind_to_memnode':
bench/numa.c:342:14: error: 'NUMA_NO_NODE' undeclared (first use in this function); did you mean 'NUMA_NUM_NODES'?
if (node == NUMA_NO_NODE)

              ^~~~~~~~~~~~
              NUMA_NUM_NODES
bench/numa.c: In function 'init_thread_data':
bench/numa.c:1366:19: error: 'NUMA_NO_NODE' undeclared (first use in this function); did you mean 'NUMA_NUM_NODES'?
   td->bind_node = NUMA_NO_NODE;
                   ^~~~~~~~~~~~
                   NUMA_NUM_NODES
Quoted 5 lines

Caused by commit

3856193d8452 ("tools/: replace open encodings for NUMA_NO_NODE")

[BTW, I did not write that patch, just added fixes last time]

Yes I had consolidated parts from the original patch into the build failure fix.

Quoted 2 lines

[BTW 2, there are lots of cc's that probably no longer apply since this was split form the previous patch]

Hmm. I had sent it as a series. So the second patch just carried over all the CC for the first one as well.

Quoted 17 lines

I have applied the following fix patch:

From: Stephen Rothwell <[email protected]>
Date: Tue, 8 Jan 2019 13:08:32 +1100
Subject: [PATCH] tools/: fix for replace open encodings for NUMA_NO_NODE

---
 tools/perf/bench/numa.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/bench/numa.c +0 -0
index e0ad5f1de226..98ad783efc69 100644

tools/perf/bench/numa.c line 39

Quoted 6 lines
tools/perf/bench/numa.c +1 -0
@@ -34,6 +34,7 @@
 #include <sys/types.h>
 #include <linux/kernel.h>
 #include <linux/time64.h>
+#include <linux/numa.h>
 
 #include <numa.h>

Just curious why the NUMA_NO_NODE definition did not get resolved from the local numa.h which had the same ones copied over from linux/numa.h but anyways the fix looks okay.

#2 lore raw

Hi Anshuman,

Quoted 4 lines · On Tue, 8 Jan 2019 10:24:18 +0530 Anshuman Khandual…

Just curious why the NUMA_NO_NODE definition did not get resolved from the local numa.h which had the same ones copied over from linux/numa.h but anyways the fix looks okay.

I assume that <numa.h> is /usr/include/numa.h (i.e. the system include file which is whatever the distro installed) while <linux/numa.h> comes out of the tools/include directory (i.e. the one we copied over from the kernel source).

Signature · 2 lines
Cheers,
Stephen Rothwell