Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230516194625.549249-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Arnd Bergmann and committed by
Jakub Kicinski
067dee65 ab87603b

+9 -1
+3 -1
drivers/net/ethernet/3com/3c515.c
··· 66 66 #include <linux/timer.h> 67 67 #include <linux/ethtool.h> 68 68 #include <linux/bitops.h> 69 - 70 69 #include <linux/uaccess.h> 70 + 71 + #include <net/Space.h> 72 + 71 73 #include <asm/io.h> 72 74 #include <asm/dma.h> 73 75
+1
drivers/net/ethernet/8390/ne.c
··· 52 52 #include <linux/etherdevice.h> 53 53 #include <linux/jiffies.h> 54 54 #include <linux/platform_device.h> 55 + #include <net/Space.h> 55 56 56 57 #include <asm/io.h> 57 58
+1
drivers/net/ethernet/8390/smc-ultra.c
··· 66 66 #include <linux/isapnp.h> 67 67 #include <linux/netdevice.h> 68 68 #include <linux/etherdevice.h> 69 + #include <net/Space.h> 69 70 70 71 #include <asm/io.h> 71 72 #include <asm/irq.h>
+1
drivers/net/ethernet/8390/wd.c
··· 37 37 #include <linux/delay.h> 38 38 #include <linux/netdevice.h> 39 39 #include <linux/etherdevice.h> 40 + #include <net/Space.h> 40 41 41 42 #include <asm/io.h> 42 43
+1
drivers/net/ethernet/amd/lance.c
··· 59 59 #include <linux/skbuff.h> 60 60 #include <linux/mm.h> 61 61 #include <linux/bitops.h> 62 + #include <net/Space.h> 62 63 63 64 #include <asm/io.h> 64 65 #include <asm/dma.h>
+2
drivers/net/ethernet/cirrus/cs89x0.c
··· 72 72 #include <linux/gfp.h> 73 73 #include <linux/io.h> 74 74 75 + #include <net/Space.h> 76 + 75 77 #include <asm/irq.h> 76 78 #include <linux/atomic.h> 77 79 #if ALLOW_DMA