KVM: x86: Remove 'return void' expression for 'void function'
authorLike Xu <likexu@tencent.com>
Sat, 7 Oct 2023 06:40:19 +0000 (14:40 +0800)
committerSean Christopherson <seanjc@google.com>
Fri, 1 Dec 2023 16:14:27 +0000 (08:14 -0800)
commitef8d89033c3f1f6a64757f066b2c17e76d1189f8
treeae2e85d5003a782a71acae8c7a2176963d499971
parentea61294befd361ab8260c65d53987b400e5599a7
KVM: x86: Remove 'return void' expression for 'void function'

The requested info will be stored in 'guest_xsave->region' referenced by
the incoming pointer "struct kvm_xsave *guest_xsave", thus there is no need
to explicitly use return void expression for a void function "static void
kvm_vcpu_ioctl_x86_get_xsave(...)". The issue is caught with [-Wpedantic].

Fixes: 2d287ec65e79 ("x86/fpu: Allow caller to constrain xfeatures when copying to uabi buffer")
Signed-off-by: Like Xu <likexu@tencent.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20231007064019.17472-1-likexu@tencent.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c