From: Christoph Lameter Date: Fri, 8 Feb 2008 12:18:42 +0000 (-0800) Subject: modules: include sections.h to avoid defining linker variables explicitly X-Git-Tag: v2.6.25-rc1~254 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d7623943c905efae327933bc5ee0b2f78e15f56;p=linux-2.6 modules: include sections.h to avoid defining linker variables explicitly 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 Signed-off-by: Linus Torvalds --- diff --git a/kernel/module.c b/kernel/module.c index dc04d4d88d..676c023c83 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -46,6 +46,7 @@ #include #include #include +#include #if 0 #define DEBUGP printk @@ -343,9 +344,6 @@ static inline unsigned int block_size(int val) 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) {