diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2017-09-13 15:13:46 +0200 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2017-09-13 16:40:24 +0200 |
commit | 5153723388c8691b886eb9ad28dde92c01f9b191 (patch) | |
tree | 249d9f1eeff7461de46d73fa16c18b7e729de166 /arch/x86/platform | |
parent | 021086e383fa408a219f6c6541b37f495f59d576 (diff) | |
download | linux-stable-5153723388c8691b886eb9ad28dde92c01f9b191.tar.gz linux-stable-5153723388c8691b886eb9ad28dde92c01f9b191.tar.bz2 linux-stable-5153723388c8691b886eb9ad28dde92c01f9b191.zip |
KVM: x86: fix clang build
Clang resolves __builtin_constant_p() to false even if the expression is
constant in the end. The only purpose of that expression was to
differentiate a case where the following expression couldn't be checked
at compile-time, so we can just remove the check.
Clang handles the following two correctly. Turn it into BUG_ON if there
are any more problems with this.
Fixes: d6321d493319 ("KVM: x86: generalize guest_cpuid_has_ helpers")
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/platform')
0 files changed, 0 insertions, 0 deletions