diff options
author | David S. Miller <davem@davemloft.net> | 2014-01-06 20:37:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-06 20:37:41 -0500 |
commit | ecca6a968fc454da641cda7aece35c4e103ad633 (patch) | |
tree | 63b7ebcc38b4a32964bc79bdfbbd2cf8318fa404 /drivers/net/ethernet/brocade | |
parent | 438e38fadca2f6e57eeecc08326c8a95758594d4 (diff) |
bna: Fix build due to missing use of dma_unmap_len_set()
> as reported for linux-next of Dec.20, 2013
> when CONFIG_NEED_DMA_MAP_STATE is not enabled:
>
> drivers/net/ethernet/brocade/bna/bnad.c: In function 'bnad_start_xmit':
> drivers/net/ethernet/brocade/bna/bnad.c:3074:26: error: 'struct bnad_tx_vector' has no member named 'dma_len'
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index d31524f9d062..5f24a9ffcfaa 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c | |||
@@ -3071,11 +3071,11 @@ bnad_start_xmit(struct sk_buff *skb, struct net_device *netdev) | |||
3071 | 3071 | ||
3072 | dma_addr = skb_frag_dma_map(&bnad->pcidev->dev, frag, | 3072 | dma_addr = skb_frag_dma_map(&bnad->pcidev->dev, frag, |
3073 | 0, size, DMA_TO_DEVICE); | 3073 | 0, size, DMA_TO_DEVICE); |
3074 | unmap->vectors[vect_id].dma_len = size; | 3074 | dma_unmap_len_set(&unmap->vectors[vect_id], dma_len, size); |
3075 | BNA_SET_DMA_ADDR(dma_addr, &txqent->vector[vect_id].host_addr); | 3075 | BNA_SET_DMA_ADDR(dma_addr, &txqent->vector[vect_id].host_addr); |
3076 | txqent->vector[vect_id].length = htons(size); | 3076 | txqent->vector[vect_id].length = htons(size); |
3077 | dma_unmap_addr_set(&unmap->vectors[vect_id], dma_addr, | 3077 | dma_unmap_addr_set(&unmap->vectors[vect_id], dma_addr, |
3078 | dma_addr); | 3078 | dma_addr); |
3079 | head_unmap->nvecs++; | 3079 | head_unmap->nvecs++; |
3080 | } | 3080 | } |
3081 | 3081 | ||