]>
Commit | Line | Data |
---|---|---|
0ca41ee7 GKH |
1 | From stable-bounces@linux.kernel.org Wed Feb 28 20:14:03 2007 |
2 | From: Sam Ravnborg <sam@ravnborg.org> | |
3 | Date: Wed, 28 Feb 2007 20:12:31 -0800 | |
4 | Subject: fix section mismatch warning in lockdep | |
5 | To: torvalds@linux-foundation.org | |
6 | Cc: akpm@linux-foundation.org, sam@ravnborg.org, mingo@elte.hu, stable@kernel.org | |
7 | Message-ID: <200703010412.l214CVNl004099@shell0.pdx.osdl.net> | |
8 | ||
9 | ||
10 | From: Sam Ravnborg <sam@ravnborg.org> | |
11 | ||
12 | lockdep_init() is marked __init but used in several places | |
13 | outside __init code. This causes following warnings: | |
14 | $ scripts/mod/modpost kernel/lockdep.o | |
15 | 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) | |
16 | 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) | |
17 | WARNING: kernel/built-in.o - Section mismatch: reference to .init.text:lockdep_init from .text.__lock_acquire after '__lock_acquire' (at offset 0xb2) | |
18 | ||
19 | The warnings are less obviously due to heavy inlining by gcc - this is not | |
20 | altered. | |
21 | ||
22 | Fix the section mismatch warnings by removing the __init marking, which | |
23 | seems obviously wrong. | |
24 | ||
25 | Signed-off-by: Sam Ravnborg <sam@ravnborg.org> | |
26 | Acked-by: Ingo Molnar <mingo@elte.hu> | |
27 | Signed-off-by: Andrew Morton <akpm@linux-foundation.org> | |
28 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
29 | ||
30 | --- | |
31 | kernel/lockdep.c | 2 +- | |
32 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
33 | ||
34 | --- linux-2.6.20.1.orig/kernel/lockdep.c | |
35 | +++ linux-2.6.20.1/kernel/lockdep.c | |
36 | @@ -2577,7 +2577,7 @@ out_restore: | |
37 | raw_local_irq_restore(flags); | |
38 | } | |
39 | ||
40 | -void __init lockdep_init(void) | |
41 | +void lockdep_init(void) | |
42 | { | |
43 | int i; | |
44 |