From: Christoph Lameter module.c should not define linker variables on its own. We have an include file for that. Signed-off-by: Christoph Lameter Cc: Rusty Russell Signed-off-by: Andrew Morton --- kernel/module.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff -puN kernel/module.c~modules-include-sectionsh-to-avoid-defining-linker-variables kernel/module.c --- a/kernel/module.c~modules-include-sectionsh-to-avoid-defining-linker-variables +++ a/kernel/module.c @@ -46,6 +46,7 @@ #include #include #include +#include #if 0 #define DEBUGP printk @@ -336,9 +337,6 @@ static inline unsigned int block_size(in return val; } -/* Created by linker magic */ -extern char __per_cpu_start[], __per_cpu_end[]; - static void *percpu_modalloc(unsigned long size, unsigned long align, const char *name) { _