mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 11:21:33 +00:00
21c0885fd1
Sparse emitted the following warning: ../drivers/staging/vboxvideo/vbox_fb.c:173:27: warning: incorrect type in assignment (different address spaces) ../drivers/staging/vboxvideo/vbox_fb.c:173:27: expected char [noderef] <asn:2>*screen_base ../drivers/staging/vboxvideo/vbox_fb.c:173:27: got void *virtual The vbox_bo buffer object kernel mapping is handled by a call to ttm_bo_kmap() prior to the assignment of bo->kmap.virtual to info->screen_base of type char __iomem*. Casting bo->kmap.virtual to char __iomem* in this assignment fixes the warning. vboxvideo: Fix address space of expression removal sparse warning Sparse emitted the following warning: ../drivers/staging/vboxvideo/vbox_main.c:64:25: warning: cast removes address space of expression vbox->vbva_buffers iomapping is handled by calling vbox_accel_init() from vbox_hw_init(). __force attribute is used in assignment to vbva to fix the warning. Signed-off-by: Alexander Kapshuk <alexander.kapshuk@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
hgsmi_base.c | ||
hgsmi_ch_setup.h | ||
hgsmi_channels.h | ||
hgsmi_defs.h | ||
Kconfig | ||
Makefile | ||
modesetting.c | ||
TODO | ||
vbox_drv.c | ||
vbox_drv.h | ||
vbox_err.h | ||
vbox_fb.c | ||
vbox_hgsmi.c | ||
vbox_irq.c | ||
vbox_main.c | ||
vbox_mode.c | ||
vbox_prime.c | ||
vbox_ttm.c | ||
vboxvideo_guest.h | ||
vboxvideo_vbe.h | ||
vboxvideo.h | ||
vbva_base.c |