KVM Archive on lore.kernel.org
 help / color / Atom feed
* Re: [PATCH] KVM: arm: get rid of unused arg in cpu_init_hyp_mode()
@ 2019-11-30  7:20 linmiaohe
  0 siblings, 0 replies; 2+ messages in thread
From: linmiaohe @ 2019-11-30  7:20 UTC (permalink / raw)
  To: maz, james.morse, julien.thierry.kdev, suzuki.poulose,
	christoffer.dall, catalin.marinas, eric.auger, gregkh, will,
	andre.przywara, tglx
  Cc: linux-arm-kernel, kvmarm, linux-kernel, kvm

>From: Miaohe Lin <linmiaohe@huawei.com>
>
>As arg dummy is not really needed, there's no need to pass NULL when calling cpu_init_hyp_mode(). So clean it up.
>
>Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
>---
> virt/kvm/arm/arm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c index 86c6aa1cb58e..a5470f1b1a19 100644
>--- a/virt/kvm/arm/arm.c
>+++ b/virt/kvm/arm/arm.c
>@@ -1315,7 +1315,7 @@ long kvm_arch_vm_ioctl(struct file *filp,
> 	}
> }
>
>-static void cpu_init_hyp_mode(void *dummy)
>+static void cpu_init_hyp_mode(void)
> {
> 	phys_addr_t pgd_ptr;
> 	unsigned long hyp_stack_ptr;
>@@ -1349,7 +1349,7 @@ static void cpu_hyp_reinit(void)
> 	if (is_kernel_in_hyp_mode())
> 		kvm_timer_init_vhe();
> 	else
>-		cpu_init_hyp_mode(NULL);
>+		cpu_init_hyp_mode();
> 
> 	kvm_arm_init_debug();
> 
friendly ping ...

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

* [PATCH] KVM: arm: get rid of unused arg in cpu_init_hyp_mode()
@ 2019-11-21  7:15 linmiaohe
  0 siblings, 0 replies; 2+ messages in thread
From: linmiaohe @ 2019-11-21  7:15 UTC (permalink / raw)
  To: maz, pbonzini, rkrcmar, james.morse, julien.thierry.kdev, suzuki.poulose
  Cc: linmiaohe, linux-arm-kernel, kvmarm, linux-kernel, kvm

From: Miaohe Lin <linmiaohe@huawei.com>

As arg dummy is not really needed, there's no need to pass
NULL when calling cpu_init_hyp_mode(). So clean it up.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 virt/kvm/arm/arm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c
index 86c6aa1cb58e..a5470f1b1a19 100644
--- a/virt/kvm/arm/arm.c
+++ b/virt/kvm/arm/arm.c
@@ -1315,7 +1315,7 @@ long kvm_arch_vm_ioctl(struct file *filp,
 	}
 }
 
-static void cpu_init_hyp_mode(void *dummy)
+static void cpu_init_hyp_mode(void)
 {
 	phys_addr_t pgd_ptr;
 	unsigned long hyp_stack_ptr;
@@ -1349,7 +1349,7 @@ static void cpu_hyp_reinit(void)
 	if (is_kernel_in_hyp_mode())
 		kvm_timer_init_vhe();
 	else
-		cpu_init_hyp_mode(NULL);
+		cpu_init_hyp_mode();
 
 	kvm_arm_init_debug();
 
-- 
2.19.1


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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-30  7:20 [PATCH] KVM: arm: get rid of unused arg in cpu_init_hyp_mode() linmiaohe
  -- strict thread matches above, loose matches on Subject: below --
2019-11-21  7:15 linmiaohe

KVM Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kvm/0 kvm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kvm kvm/ https://lore.kernel.org/kvm \
		kvm@vger.kernel.org
	public-inbox-index kvm

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.kvm


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git