Patchwork powerpc/kvm: annotate kvm_rma_init as __init

login
register
mail settings
Submitter Nishanth Aravamudan
Date Nov. 7, 2011, 11:29 p.m.
Message ID <20111107232956.GA20208@us.ibm.com>
Download mbox | patch
Permalink /patch/124216/
State Not Applicable
Headers show

Comments

Nishanth Aravamudan - Nov. 7, 2011, 11:29 p.m.
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>
Alexander Graf - Nov. 10, 2011, 5:11 p.m.
On 11/08/2011 12:29 AM, Nishanth Aravamudan wrote:
> 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>

Thanks, applied to kvm-ppc-next.


Alex

> 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;
>

Patch

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;