net: stmmac: dwmac-anarion: Use annotation __iomem for register base
authorSimon Horman <horms@kernel.org>
Thu, 6 Apr 2023 17:30:09 +0000 (19:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Apr 2023 03:06:04 +0000 (20:06 -0700)
commit9f12541d684b9250ed14bfca2cc1b106db1c0e74
tree7e6bd192551410bc92eadc01f3b0c7bd22e9e8ce
parent07e75db6b1b2e96f2cb727c2d2f64c8ed36de5dc
net: stmmac: dwmac-anarion: Use annotation __iomem for register base

Use __iomem annotation the register base: the ctl_block field of struct
anarion_gmac. I believe this is the normal practice for such variables.

By doing so some casting is avoided.
And sparse no longer reports:

 .../dwmac-anarion.c:29:23: warning: incorrect type in argument 1 (different address spaces)
 .../dwmac-anarion.c:29:23:    expected void const volatile [noderef] __iomem *addr
 .../dwmac-anarion.c:29:23:    got void *
 .../dwmac-anarion.c:34:22: warning: incorrect type in argument 2 (different address spaces)
 .../dwmac-anarion.c:34:22:    expected void volatile [noderef] __iomem *addr
 .../dwmac-anarion.c:34:22:    got void *

No functional change intended.
Compile tested only.

Signed-off-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c