The patch titled numa-x86_64-use-generic-percpu-var-numa_node_id-implementation-fix3 has been added to the -mm tree. Its filename is numa-x86_64-use-generic-percpu-var-numa_node_id-implementation-fix3.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: numa-x86_64-use-generic-percpu-var-numa_node_id-implementation-fix3 From: Lee Schermerhorn <Lee.Schermerhorn@xxxxxx> On Sun, 2010-05-16 at 16:37 -0700, Randy Dunlap wrote: > include/linux/topology.h:248: error: implicit declaration of function 'cpu_to_node' > > > config attached. Hmmm, i386 NUMA. With the following patch, your config builds correctly. !NUMA i386 still builds, as well. Lee Fix i386 numa build: define cpu_to_node() stub same as early_cpu_to_node() for i386 numa builds. Just return node from cpu_to_node_map[]. Signed-off-by: Lee Schermerhorn <lee.schermerhorn@xxxxxx> Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86/include/asm/topology.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN arch/x86/include/asm/topology.h~numa-x86_64-use-generic-percpu-var-numa_node_id-implementation-fix3 arch/x86/include/asm/topology.h --- a/arch/x86/include/asm/topology.h~numa-x86_64-use-generic-percpu-var-numa_node_id-implementation-fix3 +++ a/arch/x86/include/asm/topology.h @@ -53,10 +53,12 @@ extern int cpu_to_node_map[]; /* Returns the number of the node containing CPU 'cpu' */ -static inline int early_cpu_to_node(int cpu) +static inline int __cpu_to_node(int cpu) { return cpu_to_node_map[cpu]; } +#define early_cpu_to_node __cpu_to_node +#define cpu_to_node __cpu_to_node #else /* CONFIG_X86_64 */ _ Patches currently in -mm which might be from Lee.Schermerhorn@xxxxxx are vmscan-page_check_references-check-low-order-lumpy-reclaim-properly.patch vmscan-page_check_references-check-low-order-lumpy-reclaim-properly-update.patch cpusets-randomize-node-rotor-used-in-cpuset_mem_spread_node-fix-2.patch numa-x86_64-use-generic-percpu-var-numa_node_id-implementation-fix3.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html