Skip to contentSkip to conversation

powerpc/kvm: annotate kvm_rma_init as __init

PATCH Applied Nishanth Aravamudan 2 participants 2 messages Nov 7, 2011 – Nov 10, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/kvm: annotate kvm_rma_init as __init

kvm_rma_init() is only called at boot-time, by setup_arch, which is also __init.

arch/powerpc/kvm/book3s_hv_builtin.c +1 -1
index d431203..73fdcc1 100644
@@ -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;
Signature · 2 lines
Nishanth Aravamudan <[email protected]>
IBM Linux Technology Center
#1 lore raw
Quoted 3 lines · Nishanth Aravamudan

kvm_rma_init() is only called at boot-time, by setup_arch, which is also __init.

Thanks, applied to kvm-ppc-next.

Alex

Quoted 14 lines
arch/powerpc/kvm/book3s_hv_builtin.c +1 -1
index d431203..73fdcc1 100644
@@ -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;