[PATCH v2 2/2] coresight: etm4x: Check every parameter used by dma_xx_coherent.

2016-01-25 Thread Eric Long
The dma_alloc_coherent return an "void *" not an "void __iomen *". It uses the wrong parameters when calls dma_free_coherent function. The sparse tool output logs as the following: coresight-tmc.c:199:23:expected void * coresight-tmc.c:199:23:got void [noderef] *vaddr

[PATCH v2 2/2] coresight: etm4x: Check every parameter used by dma_xx_coherent.

2016-01-25 Thread Eric Long
The dma_alloc_coherent return an "void *" not an "void __iomen *". It uses the wrong parameters when calls dma_free_coherent function. The sparse tool output logs as the following: coresight-tmc.c:199:23:expected void * coresight-tmc.c:199:23:got void [noderef] *vaddr