On Fri, 13 Sep 2024 13:43:15 +0800, Jiapeng Chong wrote:
Use of macro ARRAY_SIZE to calculate array size minimizes the redundant code and improves code reusability.
./tools/testing/selftests/kvm/x86_64/debug_regs.c:169:32-33: WARNING: Use ARRAY_SIZE.
Applied to kvm-x86 selftests, thanks!
[1/1] KVM: selftests: Use ARRAY_SIZE for array length https://github.com/kvm-x86/linux/commit/f8912210eb21