net: fix typo in drivers/net/ethernet/xilinx/ll_temac_main.c
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 2 Nov 2011 05:49:44 +0000 (01:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Nov 2011 05:49:44 +0000 (01:49 -0400)
Commit 9e903e085262 ("net: add skb frag size accessors") used frag_size
instead of skb_frag_size in this file.

Fixes this build error:

drivers/net/ethernet/xilinx/ll_temac_main.c: In function 'temac_start_xmit':
drivers/net/ethernet/xilinx/ll_temac_main.c:717:3: error: implicit declaration of function 'frag_size' [-Werror=implicit-function-declaration]

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_main.c

index 4d1658e..caf3659 100644 (file)
@@ -716,8 +716,8 @@ static int temac_start_xmit(struct sk_buff *skb, struct net_device *ndev)
                cur_p = &lp->tx_bd_v[lp->tx_bd_tail];
                cur_p->phys = dma_map_single(ndev->dev.parent,
                                             skb_frag_address(frag),
-                                            frag_size(frag), DMA_TO_DEVICE);
-               cur_p->len = frag_size(frag);
+                                            skb_frag_size(frag), DMA_TO_DEVICE);
+               cur_p->len = skb_frag_size(frag);
                cur_p->app0 = 0;
                frag++;
        }