Skip to content

Commit

Permalink
staging: gasket: Fix sparse "incorrect type in assignment" warnings.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lrochfort authored and gregkh committed Oct 19, 2018
1 parent 8ae925f commit 4ab7e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/gasket/gasket_core.h
Expand Up @@ -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;
Expand Down

0 comments on commit 4ab7e05

Please sign in to comment.