Skip to content

Commit

Permalink
debugobjects: Section mismatch cleanup
Browse files Browse the repository at this point in the history
This patch marks two functions, which only get called at
initialization, as __init.

Here is also interesting, that modpost doesn't catch here the right
function name.

WARNING: lib/built-in.o(.text+0x585f): Section mismatch in reference
from the function T.506() to the variable .init.data:obj
The function T.506() references the variable __initdata obj.
This is often because T.506 lacks a __initdata annotation or the 
annotation of obj is wrong.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
LKML-Reference: <1269632315-19403-1-git-send-email-henne@nachtwindheim.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Henrik Kretzschmar authored and KAGA-KOKO committed Mar 26, 2010
1 parent 220bf99 commit 1fb2f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/debugobjects.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ static int __init fixup_free(void *addr, enum debug_obj_state state)
}
}

static int
static int __init
check_results(void *addr, enum debug_obj_state state, int fixups, int warnings)
{
struct debug_bucket *db;
Expand Down Expand Up @@ -916,7 +916,7 @@ void __init debug_objects_early_init(void)
/*
* Convert the statically allocated objects to dynamic ones:
*/
static int debug_objects_replace_static_objects(void)
static int __init debug_objects_replace_static_objects(void)
{
struct debug_bucket *db = obj_hash;
struct hlist_node *node, *tmp;
Expand Down

0 comments on commit 1fb2f77

Please sign in to comment.