Patchwork [3/7] powerpc/kvm: annotate kvm_rma_init as __init

login
register
mail settings
Submitter Alexander Graf
Date Dec. 25, 2011, 10:58 a.m.
Message ID <1324810715-28312-4-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/133197/
State New
Headers show

Comments

Alexander Graf - Dec. 25, 2011, 10:58 a.m.
From: Nishanth Aravamudan <nacc@us.ibm.com>

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

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 arch/powerpc/kvm/book3s_hv_builtin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/powerpc/kvm/book3s_hv_builtin.c b/arch/powerpc/kvm/book3s_hv_builtin.c
index 286f13d..a795a13 100644
--- a/arch/powerpc/kvm/book3s_hv_builtin.c
+++ b/arch/powerpc/kvm/book3s_hv_builtin.c
@@ -86,7 +86,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;