aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm/he.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2019-07-24 04:36:15 -0700
committerDavid S. Miller <davem@davemloft.net>2019-07-24 11:46:03 -0700
commit92493a2f8a8d5a5bc1188fc71ef02df859ebd932 (patch)
treefee01d1e0b722ec30a27bd6a45517db11baffd27 /drivers/atm/he.c
parentsfc-falcon: Use dev_get_drvdata where possible (diff)
downloadlinux-dev-92493a2f8a8d5a5bc1188fc71ef02df859ebd932.tar.xz
linux-dev-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 '')
-rw-r--r--drivers/atm/he.c7
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;
}