]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
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)
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

index 0203460f4895724e8188f5dbe3ae88d4795fa756..be44ac1e3118626795912b661a5ce060aa8f6974 100644 (file)
@@ -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;