Skip to contentSkip to conversation

modular nfs broken in 2.5.1-pre5

PATCH Peter Osterlund 1 participant 1 message Dec 1, 2001 VFS

lore
Share & tools
lore
#0 lore raw

Hi,

Compiling nfs as a module doesn't work because of missing symbols. The patch below works for me.

fs/Makefile renamed from fs/Makefile.old +1 -1
@@ -7,7 +7,7 @@
 
 O_TARGET := fs.o
 
-export-objs :=	filesystems.o open.o dcache.o buffer.o bio.o
+export-objs :=	filesystems.o open.o dcache.o buffer.o bio.o seq_file.o
 mod-subdirs :=	nls
 
 obj-y :=	open.o read_write.o devices.o file_table.o buffer.o \
fs/seq_file.c renamed from fs/seq_file.c.old +3 -0
@@ -8,6 +8,7 @@
 #include <linux/fs.h>
 #include <linux/seq_file.h>
 #include <linux/slab.h>
+#include <linux/module.h>
 
 #include <asm/uaccess.h>
 
@@ -275,6 +276,7 @@
 	m->count = p - m->buf;
         return 0;
 }
+EXPORT_SYMBOL(seq_escape);
 
 int seq_printf(struct seq_file *m, const char *f, ...)
 {
@@ -293,3 +295,4 @@
 	m->count = m->size;
 	return -1;
 }
+EXPORT_SYMBOL(seq_printf);
Signature · 4 lines
Peter Österlund             [email protected]
Sköndalsvägen 35            http://w1.894.telia.com/~u89404340
S-128 66 Sköndal            +46 8 942647
Sweden