]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: unisys: visorbus: Remove pointer cast that causes sparse warning
authorDavid Binder <david.binder@unisys.com>
Fri, 17 Mar 2017 15:27:11 +0000 (11:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 06:58:46 +0000 (07:58 +0100)
Removes unnecessary cast of to __iomem of a non-io-mapped pointer, thereby
eliminating the following sparse warning:

visorchannel.c:159:17: warning: cast adds address space to expression (<asn:2>)

Signed-off-by: David Binder <david.binder@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_private.h
drivers/staging/unisys/visorbus/visorchannel.c

index 49bec1763e332e8aea962987e57e56b206d66726..eb8b3ec150d54a479802a3e9c92575ea95a7cb18 100644 (file)
@@ -81,5 +81,5 @@ u64 visorchannel_get_clientpartition(struct visorchannel *channel);
 int visorchannel_set_clientpartition(struct visorchannel *channel,
                                     u64 partition_handle);
 char *visorchannel_uuid_id(uuid_le *guid, char *s);
-void __iomem *visorchannel_get_header(struct visorchannel *channel);
+void *visorchannel_get_header(struct visorchannel *channel);
 #endif
index 31cd37dad7362aa7cbc5276c3e5592c7988ab347..1b1ef93577079fa2b6571013e1922fa7f6de3738 100644 (file)
@@ -153,10 +153,10 @@ visorchannel_write(struct visorchannel *channel, ulong offset,
        return 0;
 }
 
-void __iomem  *
+void *
 visorchannel_get_header(struct visorchannel *channel)
 {
-       return (void __iomem *)&channel->chan_hdr;
+       return &channel->chan_hdr;
 }
 
 /*