]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
KVM: arm64: selftests: Cleanup unused vars in GICv5 PPI selftest
authorSascha Bischoff <sascha.bischoff@arm.com>
Wed, 20 May 2026 09:19:44 +0000 (10:19 +0100)
committerMarc Zyngier <maz@kernel.org>
Sat, 23 May 2026 14:07:41 +0000 (15:07 +0100)
Clean up a set of unused variables around the size of the guest's PA
space as they are completely irrelevant for GICv5 when only
considering PPIs.

Fixes: 0a9f38bf612b ("KVM: arm64: selftests: Introduce a minimal GICv5 PPI selftest")
Link: https://sashiko.dev/#/patchset/20260319154937.3619520-1-sascha.bischoff%40arm.com
Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com>
Link: https://lore.kernel.org/r/20260520091949.542365-14-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/arm64/vgic_v5.c

index d785b660d8476aed42e4a3fb2538d22ae8199f22..a8707120de0d860fd15ab29bbc20f5d5abc14ab2 100644 (file)
@@ -20,8 +20,6 @@ struct vm_gic {
        u32 gic_dev_type;
 };
 
-static u64 max_phys_size;
-
 #define GUEST_CMD_IRQ_CDIA     10
 #define GUEST_CMD_IRQ_DIEOI    11
 #define GUEST_CMD_IS_AWAKE     12
@@ -208,13 +206,9 @@ void run_tests(u32 gic_dev_type)
 int main(int ac, char **av)
 {
        int ret;
-       int pa_bits;
 
        test_disable_default_vgic();
 
-       pa_bits = vm_guest_mode_params[VM_MODE_DEFAULT].pa_bits;
-       max_phys_size = 1ULL << pa_bits;
-
        ret = test_kvm_device(KVM_DEV_TYPE_ARM_VGIC_V5);
        if (ret) {
                pr_info("No GICv5 support; Not running GIC_v5 tests.\n");