[PATCH] powerpc/kvm: annotate kvm_rma_init as __init

Nishanth Aravamudan nacc at us.ibm.com
Tue Nov 8 10:29:56 EST 2011


kvm_rma_init() is only called at boot-time, by setup_arch, which is also __init.
    
Signed-off-by: Nishanth Aravamudan <nacc at us.ibm.com>

diff --git a/arch/powerpc/kvm/book3s_hv_builtin.c b/arch/powerpc/kvm/book3s_hv_builtin.c
index d431203..73fdcc1 100644
--- a/arch/powerpc/kvm/book3s_hv_builtin.c
+++ b/arch/powerpc/kvm/book3s_hv_builtin.c
@@ -85,7 +85,7 @@ static inline int lpcr_rmls(unsigned long rma_size)
  * to allocate contiguous physical memory for the real memory
  * areas for guests.
  */
-void kvm_rma_init(void)
+void __init kvm_rma_init(void)
 {
 	unsigned long i;
 	unsigned long j, npages;

-- 
Nishanth Aravamudan <nacc at us.ibm.com>
IBM Linux Technology Center



More information about the Linuxppc-dev mailing list