Skip to contentSkip to conversation

mainline build failure...

DISCUSSION David Miller 1 participant 1 message Jan 7, 2009

lore
Share & tools
lore
#0 lore raw

Just FYI, I'm currently trying to resolve a build failure that was introduced in the past 24 hours in Linus's tree for sparc64:

CC drivers/base/topology.o
drivers/base/topology.c: In function ‘show_physical_package_id’:
drivers/base/topology.c:103: error: implicit declaration of function ‘cpu_data’ drivers/base/topology.c:103: error: request for member ‘proc_id’ in something not a structure or union drivers/base/topology.c: In function ‘show_core_id’:
drivers/base/topology.c:106: error: request for member ‘core_id’ in something not a structure or union make[1]: *** [drivers/base/topology.o] Error 1
make: *** [drivers/base/topology.o] Error 2

It's not simple to fix this, the "easy" idea to simply include asm/cpudata.h into asm/topology_64.h for the SMP case doesn't work at all:

CC drivers/base/topology.o
In file included from include/linux/slab.h:152,

                 from include/linux/percpu.h:5,
                 from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/cpudata_64.h:14,
                 from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/cpudata.h:4,
                 from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/topology_64.h:78,
                 from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/topology.h:4,
                 from include/linux/topology.h:34,
                 from include/linux/mmzone.h:763,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from include/linux/sysdev.h:25,
                 from drivers/base/topology.c:26:

include/linux/slub_def.h: In function ‘kmalloc_large’:
include/linux/slub_def.h:209: error: implicit declaration of function ‘__get_free_pages’ include/linux/slub_def.h:209: error: ‘__GFP_COMP’ undeclared (first use in this function) include/linux/slub_def.h:209: error: (Each undeclared identifier is reported only once include/linux/slub_def.h:209: error: for each function it appears in.) include/linux/slub_def.h:209: warning: cast to pointer from integer of different size In file included from include/linux/percpu.h:5,

                 from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/cpudata_64.h:14,
                 from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/cpudata.h:4,
                 from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/topology_64.h:78,
                 from /home/davem/src/GIT/sparc-2.6/arch/sparc/include/asm/topology.h:4,
                 from include/linux/topology.h:34,
                 from include/linux/mmzone.h:763,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from include/linux/sysdev.h:25,
                 from drivers/base/topology.c:26:

include/linux/slab.h: In function ‘kcalloc’:
include/linux/slab.h:214: error: ‘__GFP_ZERO’ undeclared (first use in this function) include/linux/slab.h: In function ‘kmem_cache_zalloc’:
include/linux/slab.h:295: error: ‘__GFP_ZERO’ undeclared (first use in this function) include/linux/slab.h: In function ‘kzalloc’:
include/linux/slab.h:305: error: ‘__GFP_ZERO’ undeclared (first use in this function) include/linux/slab.h: In function ‘kzalloc_node’:
include/linux/slab.h:316: error: ‘__GFP_ZERO’ undeclared (first use in this function) In file included from include/linux/kmod.h:22,
from include/linux/module.h:13,
from include/linux/sysdev.h:25,
from drivers/base/topology.c:26:
include/linux/gfp.h: At top level:
include/linux/gfp.h:222: error: conflicting types for ‘__get_free_pages’ include/linux/slub_def.h:209: error: previous implicit declaration of ‘__get_free_pages’ was here make[1]: *** [drivers/base/topology.o] Error 1

What a mess...

Anyways, once I have this sorted I'll merge the sparc-2.6 tree with
Linus's and push that out to kernel.org
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¬¥ªÜ–)îÇø§¶›¡Ü¨}©ž²Æ zÚ&j:+v‰¨þø¯ù®w¥þŠà2ŠÞ™¨è­Ú&¢)ß¡«a¶Úÿÿûàz¿äz¹Þ—ú+ƒùšŽŠÝ¢jÿŠwèþf