linux-next: build failure after merge of the akpm tree
From: Stephen Rothwell
Date: Mon Dec 03 2018 - 02:01:22 EST
Hi Andrew,
After merging the akpm tree, today's linux-next build (powerpc_le perf)
failed like this:
bench/numa.c:37:10: fatal error: linux/numa.h: No such file or directory
#include <linux/numa.h>
^~~~~~~~~~~~~~
Caused by patches
"mm: replace all open encodings for NUMA_NO_NODE"
"mm-replace-all-open-encodings-for-numa_no_node-fix"
For linux/numa.h to be generally availble to the tools builds, it must
be copied into tools/include/linux ...
I have done that copy for today:
From 6dabc11d5513510d0ec0a6b0a4aa8b9051b71516 Mon Sep 17 00:00:00 2001
From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Date: Mon, 3 Dec 2018 17:57:27 +1100
Subject: [PATCH] linux/numa.h is now needed for the perf build
Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
---
tools/include/linux/numa.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 tools/include/linux/numa.h
diff --git a/tools/include/linux/numa.h b/tools/include/linux/numa.h
new file mode 100644
index 000000000000..110b0e5d0fb0
--- /dev/null
+++ b/tools/include/linux/numa.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_NUMA_H
+#define _LINUX_NUMA_H
+
+
+#ifdef CONFIG_NODES_SHIFT
+#define NODES_SHIFT CONFIG_NODES_SHIFT
+#else
+#define NODES_SHIFT 0
+#endif
+
+#define MAX_NUMNODES (1 << NODES_SHIFT)
+
+#define NUMA_NO_NODE (-1)
+
+#endif /* _LINUX_NUMA_H */
--
2.19.1
--
Cheers,
Stephen Rothwell
Attachment:
pgptbsKPHjJRw.pgp
Description: OpenPGP digital signature