debugobjects: Section mismatch cleanup
authorHenrik Kretzschmar <henne@nachtwindheim.de>
Fri, 26 Mar 2010 19:38:35 +0000 (20:38 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 26 Mar 2010 20:52:29 +0000 (21:52 +0100)
commit1fb2f77c037624601fd214fb7c29faa84cd7bdd7
tree9235ff2fc459b58695267a24e5f0fee770e2c8f5
parent220bf991b0366cc50a94feede3d7341fa5710ee4
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>
lib/debugobjects.c