diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2019-07-24 13:36:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-24 20:46:03 +0200 |
commit | 92493a2f8a8d5a5bc1188fc71ef02df859ebd932 (patch) | |
tree | fee01d1e0b722ec30a27bd6a45517db11baffd27 /drivers/net/ethernet/mediatek | |
parent | sfc-falcon: Use dev_get_drvdata where possible (diff) | |
download | linux-92493a2f8a8d5a5bc1188fc71ef02df859ebd932.tar.xz 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/net/ethernet/mediatek')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_eth_soc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 00991df44ed6..e529d86468b8 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -787,7 +787,8 @@ static inline int mtk_cal_txd_req(struct sk_buff *skb) if (skb_is_gso(skb)) { for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { frag = &skb_shinfo(skb)->frags[i]; - nfrags += DIV_ROUND_UP(frag->size, MTK_TX_DMA_BUF_LEN); + nfrags += DIV_ROUND_UP(skb_frag_size(frag), + MTK_TX_DMA_BUF_LEN); } } else { nfrags += skb_shinfo(skb)->nr_frags; |