hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/drivers/net/ethernet/seeq/ether3.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/acorn/net/ether3.c
34 *
45 * Copyright (C) 1995-2000 Russell King
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 *
107 * SEEQ nq8005 ethernet driver for Acorn/ANT Ether3 card
118 * for Acorn machines
....@@ -82,7 +79,7 @@
8279 static irqreturn_t ether3_interrupt (int irq, void *dev_id);
8380 static int ether3_close (struct net_device *dev);
8481 static void ether3_setmulticastlist (struct net_device *dev);
85
-static void ether3_timeout(struct net_device *dev);
82
+static void ether3_timeout(struct net_device *dev, unsigned int txqueue);
8683
8784 #define BUS_16 2
8885 #define BUS_8 1
....@@ -453,7 +450,7 @@
453450 ether3_outw(priv(dev)->regs.config1 | CFG1_LOCBUFMEM, REG_CONFIG1);
454451 }
455452
456
-static void ether3_timeout(struct net_device *dev)
453
+static void ether3_timeout(struct net_device *dev, unsigned int txqueue)
457454 {
458455 unsigned long flags;
459456
....@@ -613,12 +610,9 @@
613610 ether3_readbuffer(dev, addrs+2, 12);
614611
615612 if (next_ptr < RX_START || next_ptr >= RX_END) {
616
- int i;
617613 printk("%s: bad next pointer @%04X: ", dev->name, priv(dev)->rx_head);
618614 printk("%02X %02X %02X %02X ", next_ptr >> 8, next_ptr & 255, status & 255, status >> 8);
619
- for (i = 2; i < 14; i++)
620
- printk("%02X ", addrs[i]);
621
- printk("\n");
615
+ printk("%pM %pM\n", addrs + 2, addrs + 8);
622616 next_ptr = priv(dev)->rx_head;
623617 break;
624618 }