]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
KVM: selftests: Mark test_hv_cpuid_e2big() static in Hyper-V CPUID test
authorSean Christopherson <seanjc@google.com>
Sat, 18 Jan 2025 00:34:52 +0000 (16:34 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 12 Feb 2025 16:53:57 +0000 (08:53 -0800)
Make the Hyper-V CPUID test's local helper test_hv_cpuid_e2big() static,
it's not used outside of the test (and isn't intended to be).

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/r/20250118003454.2619573-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/hyperv_cpuid.c

index 4f5881d4ef66d3d9baeb486536c20dc52834a327..9a0fcc7133503a84b817f6a23fd13c275477b4fe 100644 (file)
@@ -111,7 +111,7 @@ static void test_hv_cpuid(const struct kvm_cpuid2 *hv_cpuid_entries,
        }
 }
 
-void test_hv_cpuid_e2big(struct kvm_vm *vm, struct kvm_vcpu *vcpu)
+static void test_hv_cpuid_e2big(struct kvm_vm *vm, struct kvm_vcpu *vcpu)
 {
        static struct kvm_cpuid2 cpuid = {.nent = 0};
        int ret;