[PATCH] 2.6.9-rc4-mm1 compile fix for AMD64

From: Badari Pulavarty
Date: Mon Oct 11 2004 - 10:49:00 EST


Hi Andrew,

I get following error while compiling 2.6.9-rc4-mm1 on my AMD64 machine.
Here is the patch to fix it.

CC arch/x86_64/mm/numa.o
arch/x86_64/mm/numa.c: In function `numa_setup':
arch/x86_64/mm/numa.c:332: error: `numa_fake' undeclared (first use in
this function)
arch/x86_64/mm/numa.c:332: error: (Each undeclared identifier is
reported only once
arch/x86_64/mm/numa.c:332: error: for each function it appears in.)
make[1]: *** [arch/x86_64/mm/numa.o] Error 1
make: *** [arch/x86_64/mm] Error 2
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.


Thanks,
Badari


--- linux.org/arch/x86_64/mm/numa.c 2004-10-11 08:41:39.718812776 -0700
+++ linux/arch/x86_64/mm/numa.c 2004-10-11 08:41:58.485959736 -0700
@@ -328,11 +328,13 @@ __init int numa_setup(char *opt)
{
if (!strcmp(opt,"off"))
numa_off = 1;
+#ifdef CONFIG_NUMA_EMU
if(!strncmp(opt, "fake=", 5)) {
numa_fake = simple_strtoul(opt+5,NULL,0); ;
if (numa_fake >= MAX_NUMNODES)
numa_fake = MAX_NUMNODES;
}
+#endif
return 1;
}