linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/kvm: annotate kvm_rma_init as __init
@ 2011-11-07 23:29 Nishanth Aravamudan
  2011-11-10 17:11 ` Alexander Graf
  0 siblings, 1 reply; 2+ messages in thread
From: Nishanth Aravamudan @ 2011-11-07 23:29 UTC (permalink / raw)
  To: Alexander Graf; +Cc: Paul Mackerras, linuxppc-dev, kvm-ppc

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>

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@us.ibm.com>
IBM Linux Technology Center

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] powerpc/kvm: annotate kvm_rma_init as __init
  2011-11-07 23:29 [PATCH] powerpc/kvm: annotate kvm_rma_init as __init Nishanth Aravamudan
@ 2011-11-10 17:11 ` Alexander Graf
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2011-11-10 17:11 UTC (permalink / raw)
  To: Nishanth Aravamudan; +Cc: Paul Mackerras, linuxppc-dev, kvm-ppc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-10 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07 23:29 [PATCH] powerpc/kvm: annotate kvm_rma_init as __init Nishanth Aravamudan
2011-11-10 17:11 ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).