aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/s390x/resets.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-02-15 10:27:55 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-11 10:14:58 -0400
commit2b38a7398f20dbbfa88689819b21967489d284f5 (patch)
tree45112ab60c9ae999ce88b539cbcf9324dda53a5c /tools/testing/selftests/kvm/s390x/resets.c
parentKVM: selftests: Always open VM file descriptors with O_RDWR (diff)
downloadlinux-dev-2b38a7398f20dbbfa88689819b21967489d284f5.tar.xz
linux-dev-2b38a7398f20dbbfa88689819b21967489d284f5.zip
KVM: selftests: Add another underscore to inner ioctl() helpers
Add a second underscore to inner ioctl() helpers to better align with commonly accepted kernel coding style, and to allow using a single underscore variant in the future for macro shenanigans. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/s390x/resets.c')
-rw-r--r--tools/testing/selftests/kvm/s390x/resets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/kvm/s390x/resets.c b/tools/testing/selftests/kvm/s390x/resets.c
index 889449a22e7a..298bff3fd52e 100644
--- a/tools/testing/selftests/kvm/s390x/resets.c
+++ b/tools/testing/selftests/kvm/s390x/resets.c
@@ -77,7 +77,7 @@ static void assert_noirq(void)
irq_state.len = sizeof(buf);
irq_state.buf = (unsigned long)buf;
- irqs = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_GET_IRQ_STATE, &irq_state);
+ irqs = __vcpu_ioctl(vm, VCPU_ID, KVM_S390_GET_IRQ_STATE, &irq_state);
/*
* irqs contains the number of retrieved interrupts. Any interrupt
* (notably, the emergency call interrupt we have injected) should
@@ -197,7 +197,7 @@ static void inject_irq(int cpu_id)
irq_state.buf = (unsigned long)buf;
irq->type = KVM_S390_INT_EMERGENCY;
irq->u.emerg.code = cpu_id;
- irqs = _vcpu_ioctl(vm, cpu_id, KVM_S390_SET_IRQ_STATE, &irq_state);
+ irqs = __vcpu_ioctl(vm, cpu_id, KVM_S390_SET_IRQ_STATE, &irq_state);
TEST_ASSERT(irqs >= 0, "Error injecting EMERGENCY IRQ errno %d\n", errno);
}