aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorLeonardo Bras <[email protected]>2022-02-18 03:41:00 +0000
committerPaolo Bonzini <[email protected]>2022-02-18 08:33:45 +0000
commitba1f77c546966c12d86220d078e5838dcaeab348 (patch)
tree2aa5b1375358116e232ec631b12627295436432c /tools/perf/scripts/python/stat-cpi.py
parentx86/kvm/fpu: Remove kvm_vcpu_arch.guest_supported_xcr0 (diff)
downloadkernel-ba1f77c546966c12d86220d078e5838dcaeab348.tar.gz
kernel-ba1f77c546966c12d86220d078e5838dcaeab348.zip
x86/kvm: Fix compilation warning in non-x86_64 builds
On non-x86_64 builds, helpers gtod_is_based_on_tsc() and kvm_guest_supported_xfd() are defined but never used. Because these are static inline but are in a .c file, some compilers do warn for them with -Wunused-function, which becomes an error if -Werror is present. Add #ifdef so they are only defined in x86_64 builds. Reported-by: kernel test robot <[email protected]> Signed-off-by: Leonardo Bras <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions