x86: kvm: vmx: Remove some unused functions
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 11 Jan 2015 18:02:26 +0000 (19:02 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Jan 2015 10:09:36 +0000 (11:09 +0100)
Removes some functions that are not used anywhere:
cpu_has_vmx_eptp_writeback() cpu_has_vmx_eptp_uncacheable()

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c

index ce350718eb8857c41b59cc84897ea60c5a7f5220..c987374d92c11441eca720b765d9efbfe4c7636a 100644 (file)
@@ -964,16 +964,6 @@ static inline bool cpu_has_vmx_ept_execute_only(void)
        return vmx_capability.ept & VMX_EPT_EXECUTE_ONLY_BIT;
 }
 
-static inline bool cpu_has_vmx_eptp_uncacheable(void)
-{
-       return vmx_capability.ept & VMX_EPTP_UC_BIT;
-}
-
-static inline bool cpu_has_vmx_eptp_writeback(void)
-{
-       return vmx_capability.ept & VMX_EPTP_WB_BIT;
-}
-
 static inline bool cpu_has_vmx_ept_2m_page(void)
 {
        return vmx_capability.ept & VMX_EPT_2MB_PAGE_BIT;