LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] fix section mismatch warning in lockdep
@ 2007-02-26 22:52 Sam Ravnborg
0 siblings, 0 replies; only message in thread
From: Sam Ravnborg @ 2007-02-26 22:52 UTC (permalink / raw)
To: Ingo Molnar, LKML, Andrew Morton
lockdep_init() is marked __init but used in several places
outside __init code. This causes following warnings:
$ scripts/mod/modpost kernel/lockdep.o
WARNING: kernel/built-in.o - Section mismatch: reference to .init.text:lockdep_init from .text.lockdep_init_map after 'lockdep_init_map' (at offset 0x105)
WARNING: kernel/built-in.o - Section mismatch: reference to .init.text:lockdep_init from .text.lockdep_reset_lock after 'lockdep_reset_lock' (at offset 0x35)
WARNING: kernel/built-in.o - Section mismatch: reference to .init.text:lockdep_init from .text.__lock_acquire after '__lock_acquire' (at offset 0xb2)
The warnings are less obviously due to heavy inlining
by gcc - this is not altered.
Fix the section mismatch warnings by removing the __init marking,
which seems obviously wrong.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index a08a172..8dc24c9 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -2602,7 +2602,7 @@ out_restore:
raw_local_irq_restore(flags);
}
-void __init lockdep_init(void)
+void lockdep_init(void)
{
int i;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-26 22:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-26 22:52 [PATCH] fix section mismatch warning in lockdep Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).