diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-02-08 07:18:42 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:24 -0500 |
commit | 6d7623943c905efae327933bc5ee0b2f78e15f56 (patch) | |
tree | e2e4e073bd495970aa487bec94c560dcf31e33b1 /kernel | |
parent | 88173507e4fc1e7ecd111b0565e8cba0cb7dae6d (diff) |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/module.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/module.c b/kernel/module.c index dc04d4d88d02..676c023c831b 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include <asm/semaphore.h> | 46 | #include <asm/semaphore.h> |
47 | #include <asm/cacheflush.h> | 47 | #include <asm/cacheflush.h> |
48 | #include <linux/license.h> | 48 | #include <linux/license.h> |
49 | #include <asm/sections.h> | ||
49 | 50 | ||
50 | #if 0 | 51 | #if 0 |
51 | #define DEBUGP printk | 52 | #define DEBUGP printk |
@@ -343,9 +344,6 @@ static inline unsigned int block_size(int val) | |||
343 | return val; | 344 | return val; |
344 | } | 345 | } |
345 | 346 | ||
346 | /* Created by linker magic */ | ||
347 | extern char __per_cpu_start[], __per_cpu_end[]; | ||
348 | |||
349 | static void *percpu_modalloc(unsigned long size, unsigned long align, | 347 | static void *percpu_modalloc(unsigned long size, unsigned long align, |
350 | const char *name) | 348 | const char *name) |
351 | { | 349 | { |