aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ks8842.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-07-28 01:24:37 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-28 01:24:37 -0400
commitbd280635825a2b3981da63a54e38de97e87231b3 (patch)
tree6b43147010a90393f0fd6c71fb3e4dbd654c399f /drivers/net/ks8842.c
parentba01877f56c3244b21746d3f1537f7647ed97984 (diff)
ks8842: Fix warnings on 64-bit.
drivers/net/ks8842.c:922:26: warning: cast from pointer to integer of different size drivers/net/ks8842.c:940:17: warning: cast to pointer from integer of different size drivers/net/ks8842.c:963:17: warning: cast to pointer from integer of different size Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ks8842.c')
-rw-r--r--drivers/net/ks8842.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ks8842.c b/drivers/net/ks8842.c
index 3fe38c787f29..928b2b83cef5 100644
--- a/drivers/net/ks8842.c
+++ b/drivers/net/ks8842.c
@@ -919,7 +919,7 @@ static void ks8842_dealloc_dma_bufs(struct ks8842_adapter *adapter)
919 919
920static bool ks8842_dma_filter_fn(struct dma_chan *chan, void *filter_param) 920static bool ks8842_dma_filter_fn(struct dma_chan *chan, void *filter_param)
921{ 921{
922 return chan->chan_id == (int)filter_param; 922 return chan->chan_id == (long)filter_param;
923} 923}
924 924
925static int ks8842_alloc_dma_bufs(struct net_device *netdev) 925static int ks8842_alloc_dma_bufs(struct net_device *netdev)
@@ -938,7 +938,7 @@ static int ks8842_alloc_dma_bufs(struct net_device *netdev)
938 sg_init_table(&tx_ctl->sg, 1); 938 sg_init_table(&tx_ctl->sg, 1);
939 939
940 tx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn, 940 tx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn,
941 (void *)tx_ctl->channel); 941 (void *)(long)tx_ctl->channel);
942 if (!tx_ctl->chan) { 942 if (!tx_ctl->chan) {
943 err = -ENODEV; 943 err = -ENODEV;
944 goto err; 944 goto err;
@@ -961,7 +961,7 @@ static int ks8842_alloc_dma_bufs(struct net_device *netdev)
961 } 961 }
962 962
963 rx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn, 963 rx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn,
964 (void *)rx_ctl->channel); 964 (void *)(long)rx_ctl->channel);
965 if (!rx_ctl->chan) { 965 if (!rx_ctl->chan) {
966 err = -ENODEV; 966 err = -ENODEV;
967 goto err; 967 goto err;