diff options
author | Henrik Kretzschmar <henne@nachtwindheim.de> | 2010-03-26 15:38:35 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-03-26 16:52:29 -0400 |
commit | 1fb2f77c037624601fd214fb7c29faa84cd7bdd7 (patch) | |
tree | 9235ff2fc459b58695267a24e5f0fee770e2c8f5 /lib/debugobjects.c | |
parent | 220bf991b0366cc50a94feede3d7341fa5710ee4 (diff) |
debugobjects: Section mismatch cleanup
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>
Diffstat (limited to 'lib/debugobjects.c')
-rw-r--r-- | lib/debugobjects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c index a9a8996d286a..c4ecd3ce7fd4 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c | |||
@@ -773,7 +773,7 @@ static int __init fixup_free(void *addr, enum debug_obj_state state) | |||
773 | } | 773 | } |
774 | } | 774 | } |
775 | 775 | ||
776 | static int | 776 | static int __init |
777 | check_results(void *addr, enum debug_obj_state state, int fixups, int warnings) | 777 | check_results(void *addr, enum debug_obj_state state, int fixups, int warnings) |
778 | { | 778 | { |
779 | struct debug_bucket *db; | 779 | struct debug_bucket *db; |
@@ -916,7 +916,7 @@ void __init debug_objects_early_init(void) | |||
916 | /* | 916 | /* |
917 | * Convert the statically allocated objects to dynamic ones: | 917 | * Convert the statically allocated objects to dynamic ones: |
918 | */ | 918 | */ |
919 | static int debug_objects_replace_static_objects(void) | 919 | static int __init debug_objects_replace_static_objects(void) |
920 | { | 920 | { |
921 | struct debug_bucket *db = obj_hash; | 921 | struct debug_bucket *db = obj_hash; |
922 | struct hlist_node *node, *tmp; | 922 | struct hlist_node *node, *tmp; |