All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] X86_genericarch needs SMP?
@ 2006-11-22 17:48 Randy Dunlap
  2006-11-22 17:50 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2006-11-22 17:48 UTC (permalink / raw)
  To: lkml; +Cc: ak, akpm

From: Randy Dunlap <randy.dunlap@oracle.com>

With
CONFIG_SMP=n, CONFIG_X86_GENERICARCH=y
(and CONFIG_X86_SUMMIT=n), kernel build gets:

arch/i386/mach-generic/built-in.o: In function `apicid_to_node':
summit.c:(.text+0x54): undefined reference to `apicid_2_node'

so should X86_GENERICARCH depend on SMP?
or should there be more ifdefs in the source files?

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 arch/i386/Kconfig |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- linux-2619-rc6g4.orig/arch/i386/Kconfig
+++ linux-2619-rc6g4/arch/i386/Kconfig
@@ -165,8 +165,9 @@ config X86_VISWS
 	  and vice versa. See <file:Documentation/sgi-visws.txt> for details.
 
 config X86_GENERICARCH
-       bool "Generic architecture (Summit, bigsmp, ES7000, default)"
-       help
+	bool "Generic architecture (Summit, bigsmp, ES7000, default)"
+	depends on SMP
+	help
           This option compiles in the Summit, bigsmp, ES7000, default subarchitectures.
 	  It is intended for a generic binary kernel.
 	  If you want a NUMA kernel, select ACPI.   We need SRAT for NUMA.


---

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] X86_genericarch needs SMP?
  2006-11-22 17:48 [PATCH] X86_genericarch needs SMP? Randy Dunlap
@ 2006-11-22 17:50 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2006-11-22 17:50 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: lkml, akpm

On Wednesday 22 November 2006 18:48, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> With
> CONFIG_SMP=n, CONFIG_X86_GENERICARCH=y
> (and CONFIG_X86_SUMMIT=n), kernel build gets:
> 
> arch/i386/mach-generic/built-in.o: In function `apicid_to_node':
> summit.c:(.text+0x54): undefined reference to `apicid_2_node'
> 
> so should X86_GENERICARCH depend on SMP?
> or should there be more ifdefs in the source files?

I already fixed that here in a different way, but the patch didn't make 
it to Linus yet.

-Andi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-22 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-22 17:48 [PATCH] X86_genericarch needs SMP? Randy Dunlap
2006-11-22 17:50 ` Andi Kleen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.