Skip to content

Commit

Permalink
modules: include sections.h to avoid defining linker variables explic…
Browse files Browse the repository at this point in the history
…itly

module.c should not define linker variables on its own. We have an include
file for that.

Signed-off-by: Christoph Lameter <[email protected]>
Cc: Rusty Russell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Feb 8, 2008
1 parent 8817350 commit 6d76239
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <asm/semaphore.h>
#include <asm/cacheflush.h>
#include <linux/license.h>
#include <asm/sections.h>

#if 0
#define DEBUGP printk
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 6d76239

Please sign in to comment.