OSDN Git Service

staging: gasket: Fix sparse "incorrect type in assignment" warnings.
authorLaurence Rochfort <laurence.rochfort@gmail.com>
Wed, 10 Oct 2018 21:24:26 +0000 (22:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Oct 2018 19:12:29 +0000 (21:12 +0200)
commit4ab7e05dd070600833680bd318d6d962f010caa2
treedadf83ac0f2e3a9396702a6d787c9ebac10819bb
parent8ae925f02553240a4c15a1e80a6dfc5c0fa95e67
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>
drivers/staging/gasket/gasket_core.h