]> Git Repo - linux.git/commit
[PATCH] fix section mismatch warning in lockdep
authorSam Ravnborg <[email protected]>
Thu, 1 Mar 2007 04:12:31 +0000 (20:12 -0800)
committerLinus Torvalds <[email protected]>
Thu, 1 Mar 2007 22:53:37 +0000 (14:53 -0800)
commit1499993cc7bfd568f471bd697499cff394e46822
tree56279ec6ab9962cedc220a86bd42a3eba35bcd0c
parent5409bae07a63630ba5a40f3f00b7f3e6d7eceedd
[PATCH] fix section mismatch warning in lockdep

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 <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/lockdep.c
This page took 0.044793 seconds and 4 git commands to generate.