Skip to content

Commit 909fa88

Browse files
AdrianBunkJeff Garzik
authored andcommitted
drivers/net/mac8390.c: make functions static
This patch makes the following needlessly global functions static: - mac8390_ident() - mac8390_testio() - mac8390_memsize() Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
1 parent 0b11407 commit 909fa88

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

drivers/net/mac8390.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ enum mac8390_access {
117117
ACCESS_16,
118118
};
119119

120-
extern enum mac8390_type mac8390_ident(struct nubus_dev * dev);
121-
extern int mac8390_memsize(unsigned long membase);
122120
extern int mac8390_memtest(struct net_device * dev);
123121
static int mac8390_initdev(struct net_device * dev, struct nubus_dev * ndev,
124122
enum mac8390_type type);
@@ -163,7 +161,7 @@ static void slow_sane_block_output(struct net_device *dev, int count,
163161
static void word_memcpy_tocard(void *tp, const void *fp, int count);
164162
static void word_memcpy_fromcard(void *tp, const void *fp, int count);
165163

166-
enum mac8390_type __init mac8390_ident(struct nubus_dev * dev)
164+
static enum mac8390_type __init mac8390_ident(struct nubus_dev *dev)
167165
{
168166
switch (dev->dr_sw) {
169167
case NUBUS_DRSW_3COM:
@@ -234,7 +232,7 @@ enum mac8390_type __init mac8390_ident(struct nubus_dev * dev)
234232
return MAC8390_NONE;
235233
}
236234

237-
enum mac8390_access __init mac8390_testio(volatile unsigned long membase)
235+
static enum mac8390_access __init mac8390_testio(volatile unsigned long membase)
238236
{
239237
unsigned long outdata = 0xA5A0B5B0;
240238
unsigned long indata = 0x00000000;
@@ -252,7 +250,7 @@ enum mac8390_access __init mac8390_testio(volatile unsigned long membase)
252250
return ACCESS_UNKNOWN;
253251
}
254252

255-
int __init mac8390_memsize(unsigned long membase)
253+
static int __init mac8390_memsize(unsigned long membase)
256254
{
257255
unsigned long flags;
258256
int i, j;

0 commit comments

Comments
 (0)