linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 2.6.9-rc4-mm1 compile fix for AMD64
@ 2004-10-11 15:29 Badari Pulavarty
  0 siblings, 0 replies; only message in thread
From: Badari Pulavarty @ 2004-10-11 15:29 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: akpm

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

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



[-- Attachment #2: numa_fake_fix.patch --]
[-- Type: text/plain, Size: 442 bytes --]

--- 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;
 } 
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-11 15:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-11 15:29 [PATCH] 2.6.9-rc4-mm1 compile fix for AMD64 Badari Pulavarty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).