KVM: arm64: selftests: Remove print_reg's dependency on vcpu_config
authorAndrew Jones <ajones@ventanamicro.com>
Tue, 25 Jul 2023 08:41:29 +0000 (16:41 +0800)
committerAnup Patel <anup@brainfault.org>
Tue, 8 Aug 2023 16:12:03 +0000 (21:42 +0530)
commitc2b5aa7aebbae018edd988e9815087abf72e526b
tree4c0222b73094f7a7e41f3b574a5b19f30f12f08b
parent2653860812949d485e18414b72fa542c84763f71
KVM: arm64: selftests: Remove print_reg's dependency on vcpu_config

print_reg() and its helpers only use the vcpu_config pointer for
config_name(). So just pass the config name in instead, which is used
as a prefix in asserts. print_reg() can now be compiled independently
of config_name().

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/aarch64/get-reg-list.c