diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2019-07-24 07:36:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-24 14:46:03 -0400 |
commit | 92493a2f8a8d5a5bc1188fc71ef02df859ebd932 (patch) | |
tree | fee01d1e0b722ec30a27bd6a45517db11baffd27 /drivers/atm | |
parent | 8f75ec1a220e0a4b0f1abbc564987fe754cdc6f0 (diff) |
Build fixes for skb_frag_size conversion
I missed a few places. One is in some ifdeffed code which will probably
never be re-enabled; the others are in drivers which can't currently be
compiled on x86.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/he.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 211607986134..70b00ae4ec38 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c | |||
@@ -2580,10 +2580,9 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb) | |||
2580 | slot = 0; | 2580 | slot = 0; |
2581 | } | 2581 | } |
2582 | 2582 | ||
2583 | tpd->iovec[slot].addr = dma_map_single(&he_dev->pci_dev->dev, | 2583 | tpd->iovec[slot].addr = skb_frag_dma_map(&he_dev->pci_dev->dev, |
2584 | (void *) page_address(frag->page) + frag->page_offset, | 2584 | frag, 0, skb_frag_size(frag), DMA_TO_DEVICE); |
2585 | frag->size, DMA_TO_DEVICE); | 2585 | tpd->iovec[slot].len = skb_frag_size(frag); |
2586 | tpd->iovec[slot].len = frag->size; | ||
2587 | ++slot; | 2586 | ++slot; |
2588 | 2587 | ||
2589 | } | 2588 | } |