diff options
author | David S. Miller <davem@davemloft.net> | 2019-07-23 21:45:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-23 21:45:44 +0300 |
commit | 084323f62b0b976c9fd931d86c5d2553af5eb9f7 (patch) | |
tree | f690d3d8e552ff452f2a123cc5be2cce3249aa34 | |
parent | 955315b0dc8c8641311430f40fbe53990ba40e33 (diff) | |
download | linux-084323f62b0b976c9fd931d86c5d2553af5eb9f7.tar.xz |
ftgmac100: Fix build.
drivers/net/ethernet/faraday/ftgmac100.c:777:13: error: 'skb_frag_t {aka struct bio_vec}' has no member named 'size'
Fallout from the skb_frag_t conversion to bio_vec, simply
use skb_frag_size().
Fixes: b8b576a16f79 ("net: Rename skb_frag_t size to bv_len")
Reported-by: René van Dorst <opensource@vdorst.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/faraday/ftgmac100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c index 030fed65393e..dc8d3e726e75 100644 --- a/drivers/net/ethernet/faraday/ftgmac100.c +++ b/drivers/net/ethernet/faraday/ftgmac100.c @@ -774,7 +774,7 @@ static netdev_tx_t ftgmac100_hard_start_xmit(struct sk_buff *skb, for (i = 0; i < nfrags; i++) { skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; - len = frag->size; + len = skb_frag_size(frag); /* Map it */ map = skb_frag_dma_map(priv->dev, frag, 0, len, |