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)); } -- 2.27.0