On Mon, 8 Jan 2007, akpm@xxxxxxxx wrote: > Subject: make initkmem_list3 non init data to fix modpost warning > From: Vivek Goyal <vgoyal@xxxxxxxxxx> > > o MODPOST generates warning for i386 if kernel is compiled with > CONFIG_RELOCATABLE=y > > WARNING: vmlinux - Section mismatch: reference to .init.data:initkmem_list3 from .text between 'set_up_list3s' (at offset 0xc01536d9) and 's_start' > > o I don't know the code well but looks like this is a bug. initkmem_list3 > is of type __initdata, and it is accessed by non init functions. Well yes but the non-init function called has special behavior during bootstrap. initkmem_lists3 is not used after bootstrap. Everything would be fine if we could suppress the warning. > o Somebody who knows this code well needs to review and ack. On a IA64 system (allows up to 1024 node nodes) this will be wasting 212 kbyte. Some IA64 boxes only have 1 Gigabyte of memory. So we may end up wasting 1/5th of all available memory. - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |