]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: bgmac: Correctly annotate register space
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 1 Apr 2018 17:26:29 +0000 (10:26 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit 16a1c0646e55c3345bce8e4edfc06ad119d27c04 ]

All the members: base, idm_base and nicpm_base should be annotated with
__iomem since they are pointers to register space. This fixes a bunch of
sparse reported warnings.

Fixes: f6a95a24957a ("net: ethernet: bgmac: Add platform device support")
Fixes: dd5c5d037f5e ("net: ethernet: bgmac: add NS2 support")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/broadcom/bgmac.h

index 4040d846da8e9028d640b75520f821878c6eba91..40d02fec27472c94a7603bc3ada27463b6d5d744 100644 (file)
@@ -479,9 +479,9 @@ struct bgmac_rx_header {
 struct bgmac {
        union {
                struct {
-                       void *base;
-                       void *idm_base;
-                       void *nicpm_base;
+                       void __iomem *base;
+                       void __iomem *idm_base;
+                       void __iomem *nicpm_base;
                } plat;
                struct {
                        struct bcma_device *core;