diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2019-07-24 04:36:15 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-24 11:46:03 -0700 |
commit | 92493a2f8a8d5a5bc1188fc71ef02df859ebd932 (patch) | |
tree | fee01d1e0b722ec30a27bd6a45517db11baffd27 /drivers/atm | |
parent | 8f75ec1a220e0a4b0f1abbc564987fe754cdc6f0 (diff) | |
download | linux-92493a2f8a8d5a5bc1188fc71ef02df859ebd932.tar.gz linux-92493a2f8a8d5a5bc1188fc71ef02df859ebd932.tar.bz2 linux-92493a2f8a8d5a5bc1188fc71ef02df859ebd932.zip |
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) slot = 0; } - tpd->iovec[slot].addr = dma_map_single(&he_dev->pci_dev->dev, - (void *) page_address(frag->page) + frag->page_offset, - frag->size, DMA_TO_DEVICE); - tpd->iovec[slot].len = frag->size; + tpd->iovec[slot].addr = skb_frag_dma_map(&he_dev->pci_dev->dev, + frag, 0, skb_frag_size(frag), DMA_TO_DEVICE); + tpd->iovec[slot].len = skb_frag_size(frag); ++slot; } |