Skip to contentSkip to conversation

make CONFIG_NUMA depends on CONFIG_SMP

RFC PATCH In review Li Zhong 2 participants 4 messages May 30, 2012 – Apr 19, 2013 PowerPC

lore
Share & tools
lore

Li Zhong

author
#0 lore raw

RFC PATCH 1/1 make CONFIG_NUMA depends on CONFIG_SMP

I'm not sure whether it makes sense to add this dependency to avoid CONFI_NUMA && !CONFIG_SMP.

I want to do this because I saw some build errors on next-tree when compiling with CONFIG_SMP disabled, and it seems they are caused by some codes under the CONFIG_NUMA #ifdefs.

---
 arch/powerpc/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/Kconfig +1 -1
index 050cb37..b2aa74b 100644
@@ -394,7 +394,7 @@ config IRQ_ALL_CPUS
 
 config NUMA
 	bool "NUMA support"
-	depends on PPC64
+	depends on PPC64 && SMP
 	default y if SMP && PPC_PSERIES
 
 config NODES_SHIFT
Signature · 1 line
1.7.1
#1 lore raw
Quoted 6 lines · Li Zhong

I'm not sure whether it makes sense to add this dependency to avoid CONFI_NUMA && !CONFIG_SMP.

I want to do this because I saw some build errors on next-tree when compiling with CONFIG_SMP disabled, and it seems they are caused by some codes under the CONFIG_NUMA #ifdefs.

This seems to make sense to me. Can you please repost with a better changelog and a description of the actual build error you were seeing.

cheers

author
#2 lore raw
Quoted 10 lines · Michael Ellerman
Quoted 6 lines · Li Zhong

I'm not sure whether it makes sense to add this dependency to avoid CONFI_NUMA && !CONFIG_SMP.

I want to do this because I saw some build errors on next-tree when compiling with CONFIG_SMP disabled, and it seems they are caused by some codes under the CONFIG_NUMA #ifdefs.

This seems to make sense to me. Can you please repost with a better changelog and a description of the actual build error you were seeing.

I tried it today, but didn't find any build errors any more, guess those errors should have already been fixed.

But it seems to me by disabling CONFIG_NUMA when CONFIG_SMP is disabled, could at least prevent some unnecessary code being compiled into the kernel. (After building a kernel with/without CONFIG_NUMA just now, it seems that the vmlinux is ~100K smaller without CONFIG_NUMA).

I'm not sure whether this is still needed.

Thanks, Zhong

Quoted 3 lines

cheers

#3 lore raw
Quoted 15 lines · Li Zhong
Quoted 10 lines · Michael Ellerman
Quoted 6 lines · Li Zhong

I'm not sure whether it makes sense to add this dependency to avoid CONFI_NUMA && !CONFIG_SMP.

I want to do this because I saw some build errors on next-tree when compiling with CONFIG_SMP disabled, and it seems they are caused by some codes under the CONFIG_NUMA #ifdefs.

This seems to make sense to me. Can you please repost with a better changelog and a description of the actual build error you were seeing.

I tried it today, but didn't find any build errors any more, guess those errors should have already been fixed.

Quoted 6 lines

But it seems to me by disabling CONFIG_NUMA when CONFIG_SMP is disabled, could at least prevent some unnecessary code being compiled into the kernel. (After building a kernel with/without CONFIG_NUMA just now, it seems that the vmlinux is ~100K smaller without CONFIG_NUMA).

I'm not sure whether this is still needed.

Yeah we'll leave your patch out. Unless someone cares deeply about the size of the UP build, I think it's better to just leave them as separate options.

cheers