[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1274147210.24007.146.camel@useless.americas.hpqcorp.net>
Date: Mon, 17 May 2010 21:46:50 -0400
From: Lee Schermerhorn <Lee.Schermerhorn@...com>
To: Randy Dunlap <rdunlap@...otime.net>
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org
Subject: [PATCH] numa x86_64 use generic percpu var numa_node_id
implementation fix3 [was Re: mmotm 2010-05-14-13-33 uploaded]
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@...com>
arch/x86/include/asm/topology.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: linux-2.6.34-rc7-mmotm-100514-1333/arch/x86/include/asm/topology.h
===================================================================
--- linux-2.6.34-rc7-mmotm-100514-1333.orig/arch/x86/include/asm/topology.h 2010-05-17 08:40:47.000000000 -0400
+++ linux-2.6.34-rc7-mmotm-100514-1333/arch/x86/include/asm/topology.h 2010-05-17 10:49:08.000000000 -0400
@@ -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 */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists