From: Laurence Rochfort Date: Wed, 10 Oct 2018 21:24:26 +0000 (+0100) Subject: staging: gasket: Fix sparse "incorrect type in assignment" warnings. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4ab7e05dd070600833680bd318d6d962f010caa2;p=linux.git staging: gasket: Fix sparse "incorrect type in assignment" warnings. Remove the coherent buffer __iomem cookie because the buffer is allocated from dma_alloc_coherent(). warning: incorrect type in assignment (different address spaces) expected unsigned char [noderef] [usertype] *virt_base got void *[assigned] mem warning: incorrect type in argument 3 (different address spaces) expected void *cpu_addr got unsigned char [noderef] [usertype] *virt_base Signed-off-by: Laurence Rochfort Reviewed-by: Todd Poynor Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gasket/gasket_core.h b/drivers/staging/gasket/gasket_core.h index 0203460f48957..be44ac1e31186 100644 --- a/drivers/staging/gasket/gasket_core.h +++ b/drivers/staging/gasket/gasket_core.h @@ -223,7 +223,7 @@ struct gasket_coherent_buffer_desc { /* Coherent buffer structure. */ struct gasket_coherent_buffer { /* Virtual base address. */ - u8 __iomem *virt_base; + u8 *virt_base; /* Physical base address. */ ulong phys_base;