]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: selftests: Fix typos in x86's PMU counter test's macro variable use
authorColton Lewis <coltonlewis@google.com>
Wed, 18 Sep 2024 20:53:14 +0000 (20:53 +0000)
committerSean Christopherson <seanjc@google.com>
Wed, 8 Jan 2025 19:58:13 +0000 (11:58 -0800)
commit97d0d1655ea82ac8a54241d5457e6944fbff954c
tree50a6011a2c52c73b1b486a0239a7095510d76ec6
parent10b2c8a67c4b8ec15f9d07d177f63b563418e948
KVM: selftests: Fix typos in x86's PMU counter test's macro variable use

Fix goofs in PMU counter test's assertion macros where the macros
unintentionally reference variables in the parent scope.  The code "works"
as-is purely by accident, as all users define a variable with the correct
name (and usage).

Fixes: cd34fd8c758e ("KVM: selftests: Test PMC virtualization with forced emulation")
Signed-off-by: Colton Lewis <coltonlewis@google.com>
Reviewed-by: Mingwei Zhang <mizhang@google.com>
Link: https://lore.kernel.org/r/20240918205319.3517569-2-coltonlewis@google.com
[sean: massage changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/pmu_counters_test.c