KVM: arm: get rid of unused arg in cpu_init_hyp_mode()
Quoted 22 lines
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.Signed-off-by Miaohe Lin <[email protected]>---
virt/kvm/arm/arm.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)virt/kvm/arm/arm.c +1
-1@@ -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 1355
Quoted 8 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 ();
friendly ping ...
Steven Price
Reviewed-byQuoted 3 lines · linmiaohe
Quoted 3 lines
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.
It looks like the requirement for this dummy arg was removed in 67f691976662 ("arm64: kvm: allows kvm cpu hotplug"). FWIW:
Reviewed-by Steven Price <[email protected]>
Quoted 28 lines
Quoted 18 lines
Signed-off-by Miaohe Lin <[email protected]>---
virt/kvm/arm/arm.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)virt/kvm/arm/arm.c +1
-1@@ -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 1355
Quoted 8 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 ();friendly ping ...