diff options
author | Geert Uytterhoeven | 2010-06-02 09:36:20 +0200 |
---|---|---|
committer | David S. Miller | 2010-06-03 12:18:20 +0200 |
commit | 7e364e9668ceb5094622144ef4c931305329c175 (patch) | |
tree | a52fb0abcebad16edfd3def239067b7f64dd12d8 /drivers/net/smc9194.c | |
parent | chelsio: Remove remnants of CONFIG_CHELSIO_T1_COUGAR (diff) | |
download | kernel-qcow2-linux-7e364e9668ceb5094622144ef4c931305329c175.tar.gz kernel-qcow2-linux-7e364e9668ceb5094622144ef4c931305329c175.tar.xz kernel-qcow2-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/smc9194.c')
0 files changed, 0 insertions, 0 deletions