summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c/Kconfig.s3c64xx
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-02-02 01:51:57 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2022-02-04 09:44:33 +0100
commit6e37ec8825a113bc2dd1b280be10e5ac6eb4f6b1 (patch)
tree7441ba27a9c73ef186a7e616d0a19a579e0fbeab /arch/arm/mach-s3c/Kconfig.s3c64xx
parentKVM: x86: Report deprecated x87 features in supported CPUID (diff)
downloadlinux-6e37ec8825a113bc2dd1b280be10e5ac6eb4f6b1.tar.xz
linux-6e37ec8825a113bc2dd1b280be10e5ac6eb4f6b1.zip
KVM: x86: Use ERR_PTR_USR() to return -EFAULT as a __user pointer
Use ERR_PTR_USR() when returning -EFAULT from kvm_get_attr_addr(), sparse complains about implicitly casting the kernel pointer from ERR_PTR() into a __user pointer. >> arch/x86/kvm/x86.c:4342:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __user * @@ got void * @@ arch/x86/kvm/x86.c:4342:31: sparse: expected void [noderef] __user * arch/x86/kvm/x86.c:4342:31: sparse: got void * >> arch/x86/kvm/x86.c:4342:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __user * @@ got void * @@ arch/x86/kvm/x86.c:4342:31: sparse: expected void [noderef] __user * arch/x86/kvm/x86.c:4342:31: sparse: got void * No functional change intended. Fixes: 56f289a8d23a ("KVM: x86: Add a helper to retrieve userspace address from kvm_device_attr") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20220202005157.2545816-1-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/arm/mach-s3c/Kconfig.s3c64xx')
0 files changed, 0 insertions, 0 deletions