summaryrefslogtreecommitdiffstats
path: root/drivers/net/mdio.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2010-06-02 07:36:20 +0000
committerDavid S. Miller <davem@davemloft.net>2010-06-03 03:18:20 -0700
commit7e364e9668ceb5094622144ef4c931305329c175 (patch)
treea52fb0abcebad16edfd3def239067b7f64dd12d8 /drivers/net/mdio.c
parent482c42f12667223ac93bd954ad7f87c6fef29393 (diff)
downloadtalos-obmc-linux-7e364e9668ceb5094622144ef4c931305329c175.tar.gz
talos-obmc-linux-7e364e9668ceb5094622144ef4c931305329c175.zip
net: mac8390 - Sort out memory/MMIO accesses and casts
commit 5c7fffd0e3b57cb63f50bbd710868f012d67654f ("drivers/net/mac8390.c: Remove useless memcpy casting") removed too many casts, introducing the following warnings: | drivers/net/mac8390.c:248: warning: passing argument 1 of '__builtin_memcpy' makes pointer from integer without a cast | drivers/net/mac8390.c:253: warning: passing argument 1 of 'word_memcpy_tocard' makes pointer from integer without a cast | drivers/net/mac8390.c:255: warning: passing argument 2 of 'word_memcpy_fromcard' makes pointer from integer without a cast Instead of just readding the casts, - move all casts inside word_memcpy_{to,from}card(), - replace an incorrect memcpy() by memcpy_toio(), - add memcmp_withio() as a wrapper around memcmp(), - replace an incorrect memcpy_toio() by memcpy_fromio(). Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Tested-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mdio.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud