861690d054
sparse complains about the following warnings:
drivers/net/dsa/b53/b53_mmap.c:33:31: warning: incorrect type in
initializer (different address spaces)
drivers/net/dsa/b53/b53_mmap.c:33:31: expected unsigned char
[noderef] [usertype] <asn:2>*regs
drivers/net/dsa/b53/b53_mmap.c:33:31: got void *priv
and indeed, while what we are doing is functional, we are dereferencing
a void * pointer into a void __iomem * which is not great. Just use the
defined b53_mmap_priv structure which holds our register base and use
that.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
b53_common.c | ||
b53_mdio.c | ||
b53_mmap.c | ||
b53_priv.h | ||
b53_regs.h | ||
b53_spi.c | ||
b53_srab.c |