Commit 6d7623943c905efae327933bc5ee0b2f78e15f56

Authored by Christoph Lameter
Committed by Linus Torvalds
1 parent 88173507e4

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 <clameter@sgi.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff

... ... @@ -46,6 +46,7 @@
46 46 #include <asm/semaphore.h>
47 47 #include <asm/cacheflush.h>
48 48 #include <linux/license.h>
  49 +#include <asm/sections.h>
49 50  
50 51 #if 0
51 52 #define DEBUGP printk
... ... @@ -342,9 +343,6 @@
342 343 return -val;
343 344 return val;
344 345 }
345   -
346   -/* Created by linker magic */
347   -extern char __per_cpu_start[], __per_cpu_end[];
348 346  
349 347 static void *percpu_modalloc(unsigned long size, unsigned long align,
350 348 const char *name)