Skip to content

Commit 99ffab8

Browse files
AdrianBunkLinus Torvalds
authored andcommitted
nubus: kill drivers/nubus/nubus_syms.c
nubus: kill drivers/nubus/nubus_syms.c EXPORT_SYMBOL's belong to the actual code. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9676237 commit 99ffab8

4 files changed

Lines changed: 17 additions & 29 deletions

File tree

‎drivers/nubus/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
obj-y := nubus.o
66

7-
obj-$(CONFIG_MODULES) += nubus_syms.o
87
obj-$(CONFIG_PROC_FS) += proc.o

‎drivers/nubus/nubus.c‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/errno.h>
1515
#include <linux/init.h>
1616
#include <linux/delay.h>
17+
#include <linux/module.h>
1718
#include <asm/setup.h>
1819
#include <asm/system.h>
1920
#include <asm/page.h>
@@ -186,6 +187,7 @@ void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent* dirent,
186187
len--;
187188
}
188189
}
190+
EXPORT_SYMBOL(nubus_get_rsrc_mem);
189191

190192
void nubus_get_rsrc_str(void *dest, const struct nubus_dirent* dirent,
191193
int len)
@@ -200,6 +202,7 @@ void nubus_get_rsrc_str(void *dest, const struct nubus_dirent* dirent,
200202
len--;
201203
}
202204
}
205+
EXPORT_SYMBOL(nubus_get_rsrc_str);
203206

204207
int nubus_get_root_dir(const struct nubus_board* board,
205208
struct nubus_dir* dir)
@@ -209,6 +212,7 @@ int nubus_get_root_dir(const struct nubus_board* board,
209212
dir->mask = board->lanes;
210213
return 0;
211214
}
215+
EXPORT_SYMBOL(nubus_get_root_dir);
212216

213217
/* This is a slyly renamed version of the above */
214218
int nubus_get_func_dir(const struct nubus_dev* dev,
@@ -219,6 +223,7 @@ int nubus_get_func_dir(const struct nubus_dev* dev,
219223
dir->mask = dev->board->lanes;
220224
return 0;
221225
}
226+
EXPORT_SYMBOL(nubus_get_func_dir);
222227

223228
int nubus_get_board_dir(const struct nubus_board* board,
224229
struct nubus_dir* dir)
@@ -237,6 +242,7 @@ int nubus_get_board_dir(const struct nubus_board* board,
237242
return -1;
238243
return 0;
239244
}
245+
EXPORT_SYMBOL(nubus_get_board_dir);
240246

241247
int nubus_get_subdir(const struct nubus_dirent *ent,
242248
struct nubus_dir *dir)
@@ -246,6 +252,7 @@ int nubus_get_subdir(const struct nubus_dirent *ent,
246252
dir->mask = ent->mask;
247253
return 0;
248254
}
255+
EXPORT_SYMBOL(nubus_get_subdir);
249256

250257
int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent)
251258
{
@@ -274,12 +281,14 @@ int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent)
274281
ent->mask = nd->mask;
275282
return 0;
276283
}
284+
EXPORT_SYMBOL(nubus_readdir);
277285

278286
int nubus_rewinddir(struct nubus_dir* dir)
279287
{
280288
dir->ptr = dir->base;
281289
return 0;
282290
}
291+
EXPORT_SYMBOL(nubus_rewinddir);
283292

284293
/* Driver interface functions, more or less like in pci.c */
285294

@@ -303,6 +312,7 @@ nubus_find_device(unsigned short category,
303312
}
304313
return NULL;
305314
}
315+
EXPORT_SYMBOL(nubus_find_device);
306316

307317
struct nubus_dev*
308318
nubus_find_type(unsigned short category,
@@ -320,6 +330,7 @@ nubus_find_type(unsigned short category,
320330
}
321331
return NULL;
322332
}
333+
EXPORT_SYMBOL(nubus_find_type);
323334

324335
struct nubus_dev*
325336
nubus_find_slot(unsigned int slot,
@@ -335,6 +346,7 @@ nubus_find_slot(unsigned int slot,
335346
}
336347
return NULL;
337348
}
349+
EXPORT_SYMBOL(nubus_find_slot);
338350

339351
int
340352
nubus_find_rsrc(struct nubus_dir* dir, unsigned char rsrc_type,
@@ -346,6 +358,7 @@ nubus_find_rsrc(struct nubus_dir* dir, unsigned char rsrc_type,
346358
}
347359
return -1;
348360
}
361+
EXPORT_SYMBOL(nubus_find_rsrc);
349362

350363
/* Initialization functions - decide which slots contain stuff worth
351364
looking at, and print out lots and lots of information from the

‎drivers/nubus/nubus_syms.c‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎drivers/nubus/proc.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include <linux/nubus.h>
2323
#include <linux/proc_fs.h>
2424
#include <linux/init.h>
25+
#include <linux/module.h>
26+
2527
#include <asm/uaccess.h>
2628
#include <asm/byteorder.h>
2729

@@ -140,6 +142,7 @@ int nubus_proc_attach_device(struct nubus_dev *dev)
140142

141143
return 0;
142144
}
145+
EXPORT_SYMBOL(nubus_proc_attach_device);
143146

144147
/* FIXME: this is certainly broken! */
145148
int nubus_proc_detach_device(struct nubus_dev *dev)
@@ -154,6 +157,7 @@ int nubus_proc_detach_device(struct nubus_dev *dev)
154157
}
155158
return 0;
156159
}
160+
EXPORT_SYMBOL(nubus_proc_detach_device);
157161

158162
void __init proc_bus_nubus_add_devices(void)
159163
{

0 commit comments

Comments
 (0)