Skip to contentSkip to conversation

KVM: arm: get rid of unused arg in cpu_init_hyp_mode()

PATCH Applied linmiaohe 2 participants 2 messages Nov 21, 2019 – Dec 6, 2019

Subsystems (2)
lore
Share & tools
lore

linmiaohe

author
#0 lore raw

PATCH 1/1 KVM: arm: get rid of unused arg in cpu_init_hyp_mode()

From: Miaohe Lin <[email protected]>

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

---
 virt/kvm/arm/arm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
virt/kvm/arm/arm.c +2 -2
index 86c6aa1cb58e..a5470f1b1a19 100644
@@ -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();
 
Signature · 1 line
2.19.1
maintainer Applied
#1 lore raw
Quoted 24 lines · linmiaohe

From: Miaohe Lin <[email protected]>

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

---
 virt/kvm/arm/arm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
virt/kvm/arm/arm.c +1 -1
index 86c6aa1cb58e..a5470f1b1a19 100644
@@ -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;

virt/kvm/arm/arm.c static void cpu_hyp_reinit(void) · line 1354

Quoted 7 lines
virt/kvm/arm/arm.c +1 -1
@@ -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();

Applied, thanks.

        M.
Signature · 6 lines
Jazz is not dead. It just smells funny...

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel