]> git.baikalelectronics.ru Git - kernel.git/commit
smsc: smc911x: Fix sparse warnings
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 17 Jan 2013 16:46:02 +0000 (16:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2013 19:32:39 +0000 (14:32 -0500)
commita4c66e5c31fdd3e20bf02a7764fec0a1a2e96bac
tree7dcd3886155f4bd727ae27a7270c93e170cf8c69
parent0c78fbb685c716705571b4c0353bcdf7e791a445
smsc: smc911x: Fix sparse warnings

ioremap returns 'void __iomem *' type.

Fix the following build warnings:

drivers/net/ethernet/smsc/smc911x.c:2079:14: warning: incorrect type in assignment (different address spaces)
drivers/net/ethernet/smsc/smc911x.c:2079:14:    expected unsigned int *addr
drivers/net/ethernet/smsc/smc911x.c:2079:14:    got void [noderef] <asn:2>*
drivers/net/ethernet/smsc/smc911x.c:2086:18: warning: incorrect type in assignment (different address spaces)
drivers/net/ethernet/smsc/smc911x.c:2086:18:    expected void [noderef] <asn:2>*base
drivers/net/ethernet/smsc/smc911x.c:2086:18:    got unsigned int *addr
drivers/net/ethernet/smsc/smc911x.c:2091:25: warning: incorrect type in argument 1 (different address spaces)
drivers/net/ethernet/smsc/smc911x.c:2091:25:    expected void volatile [noderef] <asn:2>*addr
drivers/net/ethernet/smsc/smc911x.c:2091:25:    got unsigned int *addr

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smc911x.c