]> git.baikalelectronics.ru Git - kernel.git/commit
cpuid: kvm_find_kvm_cpuid_features() should be declared 'static'
authorPaul Durrant <pdurrant@amazon.com>
Mon, 15 Nov 2021 14:41:31 +0000 (14:41 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Nov 2021 07:03:14 +0000 (02:03 -0500)
commitf69964ccb13fbf2ad4f044536cce05ded62eec5d
tree6561e9e96aa8e4218dcf47a7de66ed01d019e1fc
parent96d8a28a935adc84d28107dacda194ff563e5acf
cpuid: kvm_find_kvm_cpuid_features() should be declared 'static'

The lack a static declaration currently results in:

arch/x86/kvm/cpuid.c:128:26: warning: no previous prototype for function 'kvm_find_kvm_cpuid_features'

when compiling with "W=1".

Reported-by: kernel test robot <lkp@intel.com>
Fixes: e77d164a71a2 ("KVM: x86: Make sure KVM_CPUID_FEATURES really are KVM_CPUID_FEATURES")
Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Message-Id: <20211115144131.5943-1-pdurrant@amazon.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c