]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests: kvm/x86/xen: Replace a comma in the xen_shinfo_test with semicolon
authorLike Xu <like.xu.linux@gmail.com>
Wed, 6 Apr 2022 06:37:14 +0000 (14:37 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Apr 2022 17:37:18 +0000 (13:37 -0400)
+WARNING: Possible comma where semicolon could be used
+#397: FILE: tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c:700:
++ tmr.type = KVM_XEN_VCPU_ATTR_TYPE_TIMER,
++ vcpu_ioctl(vm, VCPU_ID, KVM_XEN_VCPU_GET_ATTR, &tmr);

Fixes: 08a49e89b82b ("KVM: x86/xen: Add self tests for KVM_XEN_HVM_CONFIG_EVTCHN_SEND")
Signed-off-by: Like Xu <likexu@tencent.com>
Message-Id: <20220406063715.55625-4-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c

index d9d9d1deec45bd93c87bf98e2a0285ce3caa912e..5e6f40633ea669b0b1ef3184890fd836cfc30812 100644 (file)
@@ -702,7 +702,7 @@ int main(int argc, char *argv[])
 
                        case 14:
                                memset(&tmr, 0, sizeof(tmr));
-                               tmr.type = KVM_XEN_VCPU_ATTR_TYPE_TIMER,
+                               tmr.type = KVM_XEN_VCPU_ATTR_TYPE_TIMER;
                                vcpu_ioctl(vm, VCPU_ID, KVM_XEN_VCPU_GET_ATTR, &tmr);
                                TEST_ASSERT(tmr.u.timer.port == EVTCHN_TIMER,
                                            "Timer port not returned");