forked from luck/tmp_suning_uos_patched
2941a4731f
The ptr is a pointer to userspace memory. So we need annotate it with
__user otherwise we may get sparse warnings like:
drivers/vhost/vhost.c:1603:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const *__gu_ptr @@ got unsigned int [noderef] [usertypvoid const *__gu_ptr @@
drivers/vhost/vhost.c:1603:13: sparse: expected void const *__gu_ptr
drivers/vhost/vhost.c:1603:13: sparse: got unsigned int [noderef] [usertype] <asn:1> *idxp
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/r/20200520065750.8401-1-jasowang@redhat.com
Fixes:
|
||
---|---|---|
.. | ||
adb_iop.h | ||
amigahw.h | ||
amigaints.h | ||
amigayle.h | ||
amipcmcia.h | ||
apollohw.h | ||
asm-offsets.h | ||
asm-prototypes.h | ||
atari_joystick.h | ||
atari_stdma.h | ||
atari_stram.h | ||
atarihw.h | ||
atariints.h | ||
atarikb.h | ||
atomic.h | ||
bitops.h | ||
blinken.h | ||
bootinfo.h | ||
bootstd.h | ||
bug.h | ||
bugs.h | ||
bvme6000hw.h | ||
cache.h | ||
cacheflush_mm.h | ||
cacheflush_no.h | ||
cacheflush.h | ||
checksum.h | ||
cmpxchg.h | ||
coldfire.h | ||
contregs.h | ||
current.h | ||
delay.h | ||
div64.h | ||
dma.h | ||
dsp56k.h | ||
dvma.h | ||
elf.h | ||
entry.h | ||
export.h | ||
fb.h | ||
fbio.h | ||
flat.h | ||
floppy.h | ||
fpu.h | ||
ftrace.h | ||
gpio.h | ||
hash.h | ||
hp300hw.h | ||
hwtest.h | ||
ide.h | ||
idprom.h | ||
intersil.h | ||
io_mm.h | ||
io_no.h | ||
io.h | ||
irq.h | ||
irqflags.h | ||
Kbuild | ||
kexec.h | ||
kmap.h | ||
linkage.h | ||
m52xxacr.h | ||
m53xxacr.h | ||
m53xxsim.h | ||
m54xxacr.h | ||
m54xxgpt.h | ||
m54xxpci.h | ||
m54xxsim.h | ||
m520xsim.h | ||
m523xsim.h | ||
m525xsim.h | ||
m527xsim.h | ||
m528xsim.h | ||
m5206sim.h | ||
m5272sim.h | ||
m5307sim.h | ||
m5407sim.h | ||
m5441xsim.h | ||
mac_asc.h | ||
mac_baboon.h | ||
mac_iop.h | ||
mac_oss.h | ||
mac_psc.h | ||
mac_via.h | ||
machdep.h | ||
machines.h | ||
machw.h | ||
macintosh.h | ||
macints.h | ||
math-emu.h | ||
MC68EZ328.h | ||
MC68VZ328.h | ||
MC68328.h | ||
mc146818rtc.h | ||
mcf_pgalloc.h | ||
mcf_pgtable.h | ||
mcf8390.h | ||
mcfclk.h | ||
mcfdma.h | ||
mcfgpio.h | ||
mcfintc.h | ||
mcfmmu.h | ||
mcfpit.h | ||
mcfqspi.h | ||
mcfsim.h | ||
mcfslt.h | ||
mcftimer.h | ||
mcfuart.h | ||
mcfwdebug.h | ||
mmu_context.h | ||
mmu.h | ||
mmzone.h | ||
module.h | ||
motorola_pgalloc.h | ||
motorola_pgtable.h | ||
movs.h | ||
mvme16xhw.h | ||
mvme147hw.h | ||
natfeat.h | ||
nettel.h | ||
nubus.h | ||
openprom.h | ||
oplib.h | ||
page_mm.h | ||
page_no.h | ||
page_offset.h | ||
page.h | ||
parport.h | ||
pci.h | ||
pgalloc.h | ||
pgtable_mm.h | ||
pgtable_no.h | ||
pgtable.h | ||
processor.h | ||
ptrace.h | ||
q40_master.h | ||
q40ints.h | ||
quicc_simple.h | ||
raw_io.h | ||
segment.h | ||
serial.h | ||
setup.h | ||
signal.h | ||
smp.h | ||
string.h | ||
sun3_pgalloc.h | ||
sun3_pgtable.h | ||
sun3-head.h | ||
sun3ints.h | ||
sun3mmu.h | ||
sun3x.h | ||
sun3xflop.h | ||
sun3xprom.h | ||
switch_to.h | ||
syscall.h | ||
thread_info.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
traps.h | ||
uaccess_mm.h | ||
uaccess_no.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
user.h | ||
vga.h | ||
virtconvert.h | ||
vmalloc.h | ||
zorro.h |