forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/net/ethernet/amd/7990.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * 7990.c -- LANCE ethernet IC generic routines.
34 * This is an attempt to separate out the bits of various ethernet
....@@ -27,6 +28,7 @@
2728 #include <linux/route.h>
2829 #include <linux/string.h>
2930 #include <linux/skbuff.h>
31
+#include <linux/pgtable.h>
3032 #include <asm/irq.h>
3133 /* Used for the temporal inet entries and routing */
3234 #include <linux/socket.h>
....@@ -34,7 +36,6 @@
3436
3537 #include <asm/io.h>
3638 #include <asm/dma.h>
37
-#include <asm/pgtable.h>
3839 #ifdef CONFIG_HP300
3940 #include <asm/blinken.h>
4041 #endif
....@@ -526,7 +527,7 @@
526527 }
527528 EXPORT_SYMBOL_GPL(lance_close);
528529
529
-void lance_tx_timeout(struct net_device *dev)
530
+void lance_tx_timeout(struct net_device *dev, unsigned int txqueue)
530531 {
531532 printk("lance_tx_timeout\n");
532533 lance_reset(dev);
....@@ -535,7 +536,7 @@
535536 }
536537 EXPORT_SYMBOL_GPL(lance_tx_timeout);
537538
538
-int lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
539
+netdev_tx_t lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
539540 {
540541 struct lance_private *lp = netdev_priv(dev);
541542 volatile struct lance_init_block *ib = lp->init_block;