All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] [5.15] Compilation error in arch/x86/kvm/mmu/spte.h with clang-14
@ 2021-10-04  9:08 torvic9
  2021-10-04  9:26 ` Paolo Bonzini
  0 siblings, 1 reply; 13+ messages in thread
From: torvic9 @ 2021-10-04  9:08 UTC (permalink / raw)
  To: pbonzini, seanjc, vkuznets, kvm; +Cc: linux-kernel, tglx, bp

I encounter the following issue when compiling 5.15-rc4 with clang-14:

In file included from arch/x86/kvm/mmu/mmu.c:27:
arch/x86/kvm/mmu/spte.h:318:9: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
        return __is_bad_mt_xwr(rsvd_check, spte) |
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                 ||
arch/x86/kvm/mmu/spte.h:318:9: note: cast one or both operands to int to silence this warning

(no issue with gcc-11)

Tor

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-10-15  9:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04  9:08 [BUG] [5.15] Compilation error in arch/x86/kvm/mmu/spte.h with clang-14 torvic9
2021-10-04  9:26 ` Paolo Bonzini
2021-10-04  9:30   ` torvic9
2021-10-04  9:49     ` Paolo Bonzini
2021-10-04 10:10       ` torvic9
2021-10-04 14:33         ` torvic9
2021-10-04 16:13       ` Nick Desaulniers
2021-10-04 17:12         ` Jim Mattson
2021-10-14 17:50           ` Nathan Chancellor
2021-10-14 18:31             ` Sean Christopherson
2021-10-14 19:06               ` Nick Desaulniers
2021-10-14 20:50                 ` Paolo Bonzini
2021-10-15  9:17                   ` Christophe de Dinechin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.