forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/net/ethernet/amd/atarilance.c
....@@ -156,7 +156,7 @@
156156 struct lance_init_block init;
157157 struct lance_tx_head tx_head[TX_RING_SIZE];
158158 struct lance_rx_head rx_head[RX_RING_SIZE];
159
- char packet_area[0]; /* packet data follow after the
159
+ char packet_area[]; /* packet data follow after the
160160 * init block and the ring
161161 * descriptors and are located
162162 * at runtime */
....@@ -346,7 +346,7 @@
346346 static int lance_close( struct net_device *dev );
347347 static void set_multicast_list( struct net_device *dev );
348348 static int lance_set_mac_address( struct net_device *dev, void *addr );
349
-static void lance_tx_timeout (struct net_device *dev);
349
+static void lance_tx_timeout (struct net_device *dev, unsigned int txqueue);
350350
351351 /************************* End of Prototypes **************************/
352352
....@@ -727,7 +727,7 @@
727727 /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
728728
729729
730
-static void lance_tx_timeout (struct net_device *dev)
730
+static void lance_tx_timeout (struct net_device *dev, unsigned int txqueue)
731731 {
732732 struct lance_private *lp = netdev_priv(dev);
733733 struct lance_ioreg *IO = lp->iobase;
....@@ -825,7 +825,7 @@
825825 lp->memcpy_f( PKTBUF_ADDR(head), (void *)skb->data, skb->len );
826826 head->flag = TMD1_OWN_CHIP | TMD1_ENP | TMD1_STP;
827827 dev->stats.tx_bytes += skb->len;
828
- dev_kfree_skb( skb );
828
+ dev_consume_skb_irq(skb);
829829 lp->cur_tx++;
830830 while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) {
831831 lp->cur_tx -= TX_RING_SIZE;