linux/drivers/uio
Damian Hobson-Garcia 24fce61b0b drivers: uio_dmem_genirq: Don't mix address spaces for dynamic region vaddr
Assigning the virtual address returned from dma_alloc_coherent to the the
internal_addr element of uioinfo produces the following sparse errors since
internal_addr is a void __iomem * and dma_alloc_coherent returns void *.

+ drivers/uio/uio_dmem_genirq.c:65:39: sparse: incorrect type in assignment (different address spaces)
  drivers/uio/uio_dmem_genirq.c:65:39:    expected void [noderef] <asn:2>*internal_addr
  drivers/uio/uio_dmem_genirq.c:65:39:    got void *[assigned] addr
+ drivers/uio/uio_dmem_genirq.c:93:17: sparse: incorrect type in argument 3 (different address spaces)
  drivers/uio/uio_dmem_genirq.c:93:17:    expected void *vaddr
  drivers/uio/uio_dmem_genirq.c:93:17:    got void [noderef] <asn:2>*internal_addr

Store the void * in the driver's private data instead.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Cc: "Hans J. Koch" <hjk@hansjkoch.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-21 13:44:10 -08:00
..
Kconfig Add new uio device for dynamic memory allocation 2012-10-24 15:39:08 -07:00
Makefile Add new uio device for dynamic memory allocation 2012-10-24 15:39:08 -07:00
uio.c mm: kill vma flag VM_RESERVED and mm->reserved_vm counter 2012-10-09 16:22:19 +09:00
uio_aec.c uio: remove use of __devinit 2012-11-21 13:41:35 -08:00
uio_cif.c uio: remove use of __devinitdata 2012-11-21 13:41:35 -08:00
uio_dmem_genirq.c drivers: uio_dmem_genirq: Don't mix address spaces for dynamic region vaddr 2012-11-21 13:44:10 -08:00
uio_netx.c uio: remove use of __devinit 2012-11-21 13:41:35 -08:00
uio_pci_generic.c uio: remove use of __devinit 2012-11-21 13:41:35 -08:00
uio_pdrv.c uio_pdrv: set memory mapping name 2012-11-15 17:29:07 -08:00
uio_pdrv_genirq.c uio_pdrv: set memory mapping name 2012-11-15 17:29:07 -08:00
uio_pruss.c uio: remove use of __devexit 2012-11-21 13:41:35 -08:00
uio_sercos3.c uio: remove use of __devinitdata 2012-11-21 13:41:35 -08:00