]> git.baikalelectronics.ru Git - kernel.git/commit
x86, calgary: fix section mismatch warning - get_tce_space_from_tar
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 17 Aug 2008 15:50:52 +0000 (17:50 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 Aug 2008 07:10:57 +0000 (09:10 +0200)
commitd02b2860298cabe66a960c327c69722b1eedd7bc
treed516c72ad80992d86b72f89eeb519f18481e29b9
parente776847c2a7539ade55a8a42f90d59164c4a7f02
x86, calgary: fix section mismatch warning - get_tce_space_from_tar

WARNING: vmlinux.o(.text+0x27032): Section mismatch in reference from the function get_tce_space_from_tar() to the function .init.text:calgary_bus_has_devices()
The function get_tce_space_from_tar() references
the function __init calgary_bus_has_devices().
This is often because get_tce_space_from_tar lacks a __init
annotation or the annotation of calgary_bus_has_devices is wrong.

get_tce_space_from_tar is called only from __init function (calgary_init)
and calls __init function (calgary_bus_has_devices).
So annotate it properly.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Chandru Siddalingappa <chandru@in.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/pci-calgary_64.c