Skip to contentSkip to conversation

FEC: Rename dev to ndev, fix compile error

PATCH Superseded Marek Vasut 2 participants 3 messages Feb 7, 2012 – Feb 8, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FEC: Rename dev to ndev, fix compile error

The following commit introduced a typo, this commit fixes it.

commit 21a4e46995fa1a76281ac0281ff837f706231a37

Author: Pradeep A Dalvi <[email protected]>
Date:   Sun Feb 5 02:50:10 2012 +0000

netdev: ethernet dev_alloc_skb to netdev_alloc_skb

Replaced deprecating dev_alloc_skb with netdev_alloc_skb in drivers/net/ethernet
- Removed extra skb->dev = dev after netdev_alloc_skb

Cc Pradeep A Dalvi <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/freescale/fec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/freescale/fec.c +2 -2
index f976619..0ee2ca7 100644
@@ -711,7 +711,7 @@ fec_enet_rx(struct net_device *ndev)
 		 * include that when passing upstream as it messes up
 		 * bridging applications.
 		 */
-		skb = netdev_alloc_skb(dev, pkt_len - 4 + NET_IP_ALIGN);
+		skb = netdev_alloc_skb(ndev, pkt_len - 4 + NET_IP_ALIGN);
 
 		if (unlikely(!skb)) {
 			printk("%s: Memory squeeze, dropping packet.\n",
@@ -1210,7 +1210,7 @@ static int fec_enet_alloc_buffers(struct net_device *ndev)
 
 	bdp = fep->rx_bd_base;
 	for (i = 0; i < RX_RING_SIZE; i++) {
-		skb = netdev_alloc_skb(dev, FEC_ENET_RX_FRSIZE);
+		skb = netdev_alloc_skb(ndev, FEC_ENET_RX_FRSIZE);
 		if (!skb) {
 			fec_enet_free_buffers(ndev);
 			return -ENOMEM;
Signature · 1 line
1.7.8.3
maintainer
#1 lore raw

From: Marek Vasut <[email protected]>
Date: Tue, 7 Feb 2012 23:42:28 +0100

Quoted 6 lines

The following commit introduced a typo, this commit fixes it.

commit 21a4e46995fa1a76281ac0281ff837f706231a37

Author: Pradeep A Dalvi <[email protected]>
Date:   Sun Feb 5 02:50:10 2012 +0000
Quoted 6 lines

netdev: ethernet dev_alloc_skb to netdev_alloc_skb

Replaced deprecating dev_alloc_skb with netdev_alloc_skb in drivers/net/ethernet
- Removed extra skb->dev = dev after netdev_alloc_skb

This is already fixed in the net-next tree.

#2 lore raw
Quoted 11 lines

From: Marek Vasut <[email protected]>
Date: Tue, 7 Feb 2012 23:42:28 +0100

Quoted 8 lines

The following commit introduced a typo, this commit fixes it.

commit 21a4e46995fa1a76281ac0281ff837f706231a37

Author: Pradeep A Dalvi <[email protected]>
Date:   Sun Feb 5 02:50:10 2012 +0000

netdev: ethernet dev_alloc_skb to netdev_alloc_skb

Quoted 8 lines
Quoted 6 lines

Replaced deprecating dev_alloc_skb with netdev_alloc_skb in drivers/net/ethernet

- Removed extra skb->dev = dev after netdev_alloc_skb

This is already fixed in the net-next tree.

Right, it wasn't in -next so I sent it. Thanks

M