Re: [PATCH] KVM: VMX: Fix build error on claim of vmx_get_pid_table_order()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/4/22 05:21, Zeng Guang wrote:
Change function claim to static.
Report warning: no previous prototype for 'vmx_get_pid_table_order'
[-Wmissing-prototypes].

Fixes: 101c99f6506d ("KVM: VMX: enable IPI virtualization")
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: Zeng Guang <guang.zeng@xxxxxxxxx>
---
Paolo, could you please merge this fix into commit 101c99f6506d ("KVM:
VMX: enable IPI virtualization") in kvm/queue? Sorry for such mistake.

  arch/x86/kvm/vmx/vmx.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index bb09fc9a7e55..2065babb2c9c 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -4402,7 +4402,7 @@ static u32 vmx_secondary_exec_control(struct vcpu_vmx *vmx)
  	return exec_control;
  }
-int vmx_get_pid_table_order(struct kvm *kvm)
+static int vmx_get_pid_table_order(struct kvm *kvm)
  {
  	return get_order(kvm->arch.max_vcpu_ids * sizeof(*to_kvm_vmx(kvm)->pid_table));
  }

Yup, done.

Paolo




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux