summaryrefslogtreecommitdiffstats
path: root/usr/Makefile
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2024-05-23 17:41:02 +0200
committerSean Christopherson <seanjc@google.com>2024-06-05 15:16:09 +0200
commitd21b3c60d6e3917f7388db6bcc455f01c99ee42b (patch)
tree2aecbc42efac1781d566751d126fb41ebbc13140 /usr/Makefile
parentLinux 6.10-rc2 (diff)
downloadlinux-d21b3c60d6e3917f7388db6bcc455f01c99ee42b.tar.xz
linux-d21b3c60d6e3917f7388db6bcc455f01c99ee42b.zip
KVM: selftests: Fix shift of 32 bit unsigned int more than 32 bits
Currrentl a 32 bit 1u value is being shifted more than 32 bits causing overflow and incorrect checking of bits 32-63. Fix this by using the BIT_ULL macro for shifting bits. Detected by cppcheck: sev_init2_tests.c:108:34: error: Shifting 32-bit value by 63 bits is undefined behaviour [shiftTooManyBits] Fixes: dfc083a181ba ("selftests: kvm: add tests for KVM_SEV_INIT2") Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20240523154102.2236133-1-colin.i.king@gmail.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'usr/Makefile')
0 files changed, 0 insertions, 0 deletions