Skip to content

Commit

Permalink
OMAP: PM debug: fix section mismatch warnings
Browse files Browse the repository at this point in the history
WARNING: arch/arm/mach-omap2/built-in.o(.text+0x423c): Section mismatch in reference from the function pm_dbg_regset_init() to the function .init.text:pm_dbg_init()
The function pm_dbg_regset_init() references
the function __init pm_dbg_init().
This is often because pm_dbg_regset_init lacks a __init
annotation or the annotation of pm_dbg_init is wrong.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Kevin Hilman <khilman@ti.com>
  • Loading branch information
Russell King authored and Kevin Hilman committed Jun 6, 2011
1 parent 59c5f46 commit c8fb13d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-omap2/pm-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static struct dentry *pm_dbg_dir;

static int pm_dbg_init_done;

static int __init pm_dbg_init(void);
static int pm_dbg_init(void);

enum {
DEBUG_FILE_COUNTERS = 0,
Expand Down Expand Up @@ -595,7 +595,7 @@ static int option_set(void *data, u64 val)

DEFINE_SIMPLE_ATTRIBUTE(pm_dbg_option_fops, option_get, option_set, "%llu\n");

static int __init pm_dbg_init(void)
static int pm_dbg_init(void)
{
int i;
struct dentry *d;
Expand Down

0 comments on commit c8fb13d

Please sign in to comment.