[PATCH 0/2] Fix and add warning of misuse of type##_replace_bits()

Ben Horgan posted 2 patches 3 months ago
There is a newer version of this series
arch/arm64/kvm/sys_regs.c | 2 +-
include/linux/bitfield.h  | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
[PATCH 0/2] Fix and add warning of misuse of type##_replace_bits()
Posted by Ben Horgan 3 months ago
By inspection there is one mistake in the use of u64_replace_bits(). Fix
this and while I'm here add a __must_check annotation to help avoid the
same mistake happening again.

Ben Horgan (2):
  KVM: arm64: Fix enforcement of upper bound on MDCR_EL2.HPMN
  bitfield: Ensure the return value of type##_replace_bits() is checked

 arch/arm64/kvm/sys_regs.c | 2 +-
 include/linux/bitfield.h  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.43.0