Skip to content
Commit ef8d8903 authored by Like Xu's avatar Like Xu Committed by Sean Christopherson
Browse files

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: default avatarLike Xu <likexu@tencent.com>
Reviewed-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20231007064019.17472-1-likexu@tencent.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent ea61294b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment