powerpc: Fix Section mismatch warnings in prom_init.c
authorLi Zhong <zhong@linux.vnet.ibm.com>
Thu, 7 Jun 2012 17:44:23 +0000 (17:44 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 29 Jun 2012 04:35:36 +0000 (14:35 +1000)
commit2cb387ae758d97ee7396a82528c824b8dc510b8a
treeb026d6936e9d025763630726b40600c438c84846
parentc58ce2b1e3c75c55e7ebf751afce9f5a30f60b42
powerpc: Fix Section mismatch warnings in prom_init.c

This patches tries to fix a couple of Section mismatch warnings like
following one:

WARNING: arch/powerpc/kernel/built-in.o(.text+0x2923c): Section mismatch
in reference from the function .prom_query_opal() to the
function .init.text:.call_prom()
The function .prom_query_opal() references
the function __init .call_prom().
This is often because .prom_query_opal lacks a __init
annotation or the annotation of .call_prom is wrong.

Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/prom_init.c