diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-09-06 15:23:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-09-06 15:23:33 -0700 |
commit | 9d4c304001cf44d24c643211a1673cf49ecaf287 (patch) | |
tree | 6fd7a790525c4d6d8ff4b71e2e78f1d78b74ba2b /arch/x86/include/asm/xsave.h | |
parent | 6b8ff511e412af4a367a8d3d4f323715a9357aa0 (diff) | |
download | linux-master.tar.gz linux-master.tar.bz2 linux-master.zip |
clang warns on this because it has an unannotated fall-through between
cases:
arch/x86/kvm/x86.c:4819:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
and while we could annotate it as a fallthrough, the proper fix is to
just add the break for this case, instead of falling through to the
default case and the break there.
gcc also has that warning, but it looks like gcc only warns for the
cases where they fall through to "real code", rather than to just a
break. Odd.
Fixes: d30d9ee94cc0 ("KVM: x86: Only advertise KVM_CAP_READONLY_MEM when supported by VM")
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Tom Dohrmann <erbse.13@gmx.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/include/asm/xsave.h')
0 files changed, 0 insertions, 0 deletions