diff options
author | Simon Horman <horms@kernel.org> | 2023-04-06 20:30:09 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-04-08 06:06:04 +0300 |
commit | 9f12541d684b9250ed14bfca2cc1b106db1c0e74 (patch) | |
tree | 7e6bd192551410bc92eadc01f3b0c7bd22e9e8ce /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 07e75db6b1b2e96f2cb727c2d2f64c8ed36de5dc (diff) | |
download | linux-9f12541d684b9250ed14bfca2cc1b106db1c0e74.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions