Skip to content

Commit b6835f9

Browse files
rashikadavem330
authored andcommitted
drivers: net: Include new header file in sbni.c
Create a new header file include/net/Space.h which contains prototype declaration of sbni_probe(). Include the new header file in drivers/net/Space.c and drivers/net/wan/sbni.c because they use this function. This eliminates the following warning in wan/sbni.c: drivers/net/wan/sbni.c:224:12: warning: no previous prototype for ‘sbni_probe’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 33ba407 commit b6835f9

3 files changed

Lines changed: 33 additions & 28 deletions

File tree

‎drivers/net/Space.c‎

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -32,39 +32,12 @@
3232
#include <linux/errno.h>
3333
#include <linux/init.h>
3434
#include <linux/netlink.h>
35+
#include <net/Space.h>
3536

3637
/* A unified ethernet device probe. This is the easiest way to have every
3738
ethernet adaptor have the name "eth[0123...]".
3839
*/
3940

40-
extern struct net_device *hp100_probe(int unit);
41-
extern struct net_device *ultra_probe(int unit);
42-
extern struct net_device *wd_probe(int unit);
43-
extern struct net_device *ne_probe(int unit);
44-
extern struct net_device *fmv18x_probe(int unit);
45-
extern struct net_device *i82596_probe(int unit);
46-
extern struct net_device *ni65_probe(int unit);
47-
extern struct net_device *sonic_probe(int unit);
48-
extern struct net_device *smc_init(int unit);
49-
extern struct net_device *atarilance_probe(int unit);
50-
extern struct net_device *sun3lance_probe(int unit);
51-
extern struct net_device *sun3_82586_probe(int unit);
52-
extern struct net_device *apne_probe(int unit);
53-
extern struct net_device *cs89x0_probe(int unit);
54-
extern struct net_device *mvme147lance_probe(int unit);
55-
extern struct net_device *tc515_probe(int unit);
56-
extern struct net_device *lance_probe(int unit);
57-
extern struct net_device *mac8390_probe(int unit);
58-
extern struct net_device *mac89x0_probe(int unit);
59-
extern struct net_device *cops_probe(int unit);
60-
extern struct net_device *ltpc_probe(void);
61-
62-
/* Fibre Channel adapters */
63-
extern int iph5526_probe(struct net_device *dev);
64-
65-
/* SBNI adapters */
66-
extern int sbni_probe(int unit);
67-
6841
struct devprobe2 {
6942
struct net_device *(*probe)(int unit);
7043
int status; /* non-zero if autoprobe has failed */

‎drivers/net/wan/sbni.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858
#include <net/net_namespace.h>
5959
#include <net/arp.h>
60+
#include <net/Space.h>
6061

6162
#include <asm/io.h>
6263
#include <asm/types.h>

‎include/net/Space.h‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* A unified ethernet device probe. This is the easiest way to have every
2+
* ethernet adaptor have the name "eth[0123...]".
3+
*/
4+
5+
struct net_device *hp100_probe(int unit);
6+
struct net_device *ultra_probe(int unit);
7+
struct net_device *wd_probe(int unit);
8+
struct net_device *ne_probe(int unit);
9+
struct net_device *fmv18x_probe(int unit);
10+
struct net_device *i82596_probe(int unit);
11+
struct net_device *ni65_probe(int unit);
12+
struct net_device *sonic_probe(int unit);
13+
struct net_device *smc_init(int unit);
14+
struct net_device *atarilance_probe(int unit);
15+
struct net_device *sun3lance_probe(int unit);
16+
struct net_device *sun3_82586_probe(int unit);
17+
struct net_device *apne_probe(int unit);
18+
struct net_device *cs89x0_probe(int unit);
19+
struct net_device *mvme147lance_probe(int unit);
20+
struct net_device *tc515_probe(int unit);
21+
struct net_device *lance_probe(int unit);
22+
struct net_device *mac8390_probe(int unit);
23+
struct net_device *mac89x0_probe(int unit);
24+
struct net_device *cops_probe(int unit);
25+
struct net_device *ltpc_probe(void);
26+
27+
/* Fibre Channel adapters */
28+
int iph5526_probe(struct net_device *dev);
29+
30+
/* SBNI adapters */
31+
int sbni_probe(int unit);

0 commit comments

Comments
 (0)