]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: vmx: fix build warnings in hv_enable_direct_tlbflush() on i386
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 25 Sep 2019 13:30:35 +0000 (15:30 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Sep 2019 13:31:23 +0000 (15:31 +0200)
commit559efd086cb65dab7376a57e55c99756d4004052
tree3390f74c7c4638e377ab955a103db42cba1a1550
parente2ce6a0e56a7071f43461ef3bbd89b31118ddd0e
KVM: vmx: fix build warnings in hv_enable_direct_tlbflush() on i386

The following was reported on i386:

  arch/x86/kvm/vmx/vmx.c: In function 'hv_enable_direct_tlbflush':
  arch/x86/kvm/vmx/vmx.c:503:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

pr_debugs() in this function are  more or less useless, let's just
remove them. evmcs->hv_vm_id can use 'unsigned long' instead of 'u64'.

Also, simplify the code a little bit.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c