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>
This commit is contained in:
Matthew Wilcox (Oracle)
2019-07-24 04:36:15 -07:00
committed by David S. Miller
parent 8f75ec1a22
commit 92493a2f8a
6 changed files with 9 additions and 9 deletions

View File

@@ -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;
}