Skip to content

Commit 16a1c06

Browse files
ffainellidavem330
authored andcommitted
net: bgmac: Correctly annotate register space
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: f6a95a2 ("net: ethernet: bgmac: Add platform device support") Fixes: dd5c5d0 ("net: ethernet: bgmac: add NS2 support") Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6174a30 commit 16a1c06

File tree

1 file changed

+3
-3
lines changed
  • drivers/net/ethernet/broadcom

1 file changed

+3
-3
lines changed

drivers/net/ethernet/broadcom/bgmac.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,9 @@ struct bgmac_rx_header {
479479
struct bgmac {
480480
union {
481481
struct {
482-
void *base;
483-
void *idm_base;
484-
void *nicpm_base;
482+
void __iomem *base;
483+
void __iomem *idm_base;
484+
void __iomem *nicpm_base;
485485
} plat;
486486
struct {
487487
struct bcma_device *core;

0 commit comments

Comments
 (0)