]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
farsync: Fix compile warnings.
authorDavid S. Miller <davem@davemloft.net>
Tue, 10 Aug 2010 07:06:58 +0000 (00:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Aug 2010 07:06:58 +0000 (00:06 -0700)
commit5d337d6f64d150b6577972cc23f709ee85f66881
treeece22e5268bc869902827ceefd281fbb864158fe
parentc4e9b56e24422e71424b24eee27c2b134a191d7b
farsync: Fix compile warnings.

drivers/net/wan/farsync.c: In function 'fst_intr_rx':
drivers/net/wan/farsync.c:1312: warning: cast to pointer from integer of different size
drivers/net/wan/farsync.c: In function 'do_bottom_half_tx':
drivers/net/wan/farsync.c:1407: warning: cast to pointer from integer of different size

The "skb" and "mem" arguments being passed here are DMA addresses
being programmed into the hardware registers, so pass them as the type
that they actually are.  And use the correct printf formatting in
debug logging statements for these things to match the type change.

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/farsync.c