Skip to content

Commit 067dee6

Browse files
arndbkuba-moo
authored andcommitted
net: isa: include net/Space.h
The legacy drivers that still get called from net/Space.c have prototypes in net/Space, but this header is not included in most of the files that define those functions: drivers/net/ethernet/cirrus/cs89x0.c:1649:28: error: no previous prototype for 'cs89x0_probe' [-Werror=missing-prototypes] drivers/net/ethernet/8390/ne.c:947:28: error: no previous prototype for 'ne_probe' [-Werror=missing-prototypes] drivers/net/ethernet/8390/smc-ultra.c:167:28: error: no previous prototype for 'ultra_probe' [-Werror=missing-prototypes] drivers/net/ethernet/amd/lance.c:438:28: error: no previous prototype for 'lance_probe' [-Werror=missing-prototypes] drivers/net/ethernet/3com/3c515.c:422:20: error: no previous prototype for 'tc515_probe' [-Werror=missing-prototypes] Add the inclusion to avoids the warnings. Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ab87603 commit 067dee6

File tree

6 files changed

+9
-1
lines changed

6 files changed

+9
-1
lines changed

drivers/net/ethernet/3com/3c515.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ static int max_interrupt_work = 20;
6666
#include <linux/timer.h>
6767
#include <linux/ethtool.h>
6868
#include <linux/bitops.h>
69-
7069
#include <linux/uaccess.h>
70+
71+
#include <net/Space.h>
72+
7173
#include <asm/io.h>
7274
#include <asm/dma.h>
7375

drivers/net/ethernet/8390/ne.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ static const char version2[] =
5252
#include <linux/etherdevice.h>
5353
#include <linux/jiffies.h>
5454
#include <linux/platform_device.h>
55+
#include <net/Space.h>
5556

5657
#include <asm/io.h>
5758

drivers/net/ethernet/8390/smc-ultra.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ static const char version[] =
6666
#include <linux/isapnp.h>
6767
#include <linux/netdevice.h>
6868
#include <linux/etherdevice.h>
69+
#include <net/Space.h>
6970

7071
#include <asm/io.h>
7172
#include <asm/irq.h>

drivers/net/ethernet/8390/wd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ static const char version[] =
3737
#include <linux/delay.h>
3838
#include <linux/netdevice.h>
3939
#include <linux/etherdevice.h>
40+
#include <net/Space.h>
4041

4142
#include <asm/io.h>
4243

drivers/net/ethernet/amd/lance.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ static const char version[] = "lance.c:v1.16 2006/11/09 [email protected], becker@c
5959
#include <linux/skbuff.h>
6060
#include <linux/mm.h>
6161
#include <linux/bitops.h>
62+
#include <net/Space.h>
6263

6364
#include <asm/io.h>
6465
#include <asm/dma.h>

drivers/net/ethernet/cirrus/cs89x0.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
#include <linux/gfp.h>
7373
#include <linux/io.h>
7474

75+
#include <net/Space.h>
76+
7577
#include <asm/irq.h>
7678
#include <linux/atomic.h>
7779
#if ALLOW_DMA

0 commit comments

Comments
 (0)