Skip to content
Snippets Groups Projects
user avatar
Leonardo Bras authored
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: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarLeonardo Bras <leobras@redhat.com>
Message-Id: <20220218034100.115702-1-leobras@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
ba1f77c5
History
Name Last commit Last update