Skip to contentSkip to conversation

sparse warnings

DISCUSSION Michael S. Tsirkin 1 participant 1 message Aug 4, 2020 KVM

lore
Share & tools
lore
#0 lore raw

noticed these hen building with C=1:

arch/x86/kvm/x86.c:2669:38: warning: incorrect type in argument 1 (different address spaces)
arch/x86/kvm/x86.c:2669:38: expected void const [noderef] __user *
arch/x86/kvm/x86.c:2669:38: got unsigned char [usertype] *
arch/x86/kvm/x86.c:7636:15: error: incompatible types in comparison expression (different address spaces):
arch/x86/kvm/x86.c:7636:15: struct kvm_apic_map [noderef] __rcu *
arch/x86/kvm/x86.c:7636:15: struct kvm_apic_map *
arch/x86/kvm/x86.c:10010:16: error: incompatible types in comparison expression (different address spaces):
arch/x86/kvm/x86.c:10010:16: struct kvm_apic_map [noderef] __rcu *
arch/x86/kvm/x86.c:10010:16: struct kvm_apic_map *
arch/x86/kvm/x86.c:10011:15: error: incompatible types in comparison expression (different address spaces):
arch/x86/kvm/x86.c:10011:15: struct kvm_pmu_event_filter [noderef] __rcu *
arch/x86/kvm/x86.c:10011:15: struct kvm_pmu_event_filter *
arch/x86/kvm/x86.c: note: in included file (through include/linux/notifier.h, arch/x86/include/asm/uprobes.h, include/linux/uprobes.h, include/linux/mm_types.h, include/asm-generic/fixmap.h, arch/x86/include/asm/fixmap.h, ...):
./include/linux/srcu.h:179:9: warning: context imbalance in 'vcpu_enter_guest' - unexpected unlock

HTH,

Signature · 1 line
MST