summaryrefslogtreecommitdiffstats
path: root/drivers/net/ks8842.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-07-28 07:24:37 +0200
committerDavid S. Miller <davem@davemloft.net>2010-07-28 07:24:37 +0200
commitbd280635825a2b3981da63a54e38de97e87231b3 (patch)
tree6b43147010a90393f0fd6c71fb3e4dbd654c399f /drivers/net/ks8842.c
parentmacvlan: Fix rx counters update in macvlan_handle_frame() (diff)
downloadlinux-bd280635825a2b3981da63a54e38de97e87231b3.tar.xz
linux-bd280635825a2b3981da63a54e38de97e87231b3.zip
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)
static bool ks8842_dma_filter_fn(struct dma_chan *chan, void *filter_param)
{
- return chan->chan_id == (int)filter_param;
+ return chan->chan_id == (long)filter_param;
}
static int ks8842_alloc_dma_bufs(struct net_device *netdev)
@@ -938,7 +938,7 @@ static int ks8842_alloc_dma_bufs(struct net_device *netdev)
sg_init_table(&tx_ctl->sg, 1);
tx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn,
- (void *)tx_ctl->channel);
+ (void *)(long)tx_ctl->channel);
if (!tx_ctl->chan) {
err = -ENODEV;
goto err;
@@ -961,7 +961,7 @@ static int ks8842_alloc_dma_bufs(struct net_device *netdev)
}
rx_ctl->chan = dma_request_channel(mask, ks8842_dma_filter_fn,
- (void *)rx_ctl->channel);
+ (void *)(long)rx_ctl->channel);
if (!rx_ctl->chan) {
err = -ENODEV;
goto err;