Skip to content

Commit

Permalink
ks8842: Fix warnings on 64-bit.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Jul 28, 2010
1 parent ba01877 commit bd28063
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/ks8842.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit bd28063

Please sign in to comment.