diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2010-06-02 07:36:20 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-03 03:18:20 -0700 |
commit | 7e364e9668ceb5094622144ef4c931305329c175 (patch) | |
tree | a52fb0abcebad16edfd3def239067b7f64dd12d8 /drivers/net/3c503.c | |
parent | 482c42f12667223ac93bd954ad7f87c6fef29393 (diff) | |
download | talos-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/3c503.c')
0 files changed, 0 insertions, 0 deletions