summaryrefslogtreecommitdiffstats
path: root/drivers/staging/gasket
diff options
context:
space:
mode:
authorLaurence Rochfort <laurence.rochfort@gmail.com>2018-10-10 22:24:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-19 21:12:29 +0200
commit4ab7e05dd070600833680bd318d6d962f010caa2 (patch)
treedadf83ac0f2e3a9396702a6d787c9ebac10819bb /drivers/staging/gasket
parent8ae925f02553240a4c15a1e80a6dfc5c0fa95e67 (diff)
downloadlinux-4ab7e05dd070600833680bd318d6d962f010caa2.tar.gz
linux-4ab7e05dd070600833680bd318d6d962f010caa2.tar.bz2
linux-4ab7e05dd070600833680bd318d6d962f010caa2.zip
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] <asn:2>*virt_base got void *[assigned] mem warning: incorrect type in argument 3 (different address spaces) expected void *cpu_addr got unsigned char [noderef] [usertype] <asn:2>*virt_base Signed-off-by: Laurence Rochfort <laurence.rochfort@gmail.com> Reviewed-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gasket')
-rw-r--r--drivers/staging/gasket/gasket_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gasket/gasket_core.h b/drivers/staging/gasket/gasket_core.h
index 0203460f4895..be44ac1e3118 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;