modular nfs broken in 2.5.1-pre5

From: Peter Osterlund (petero2@telia.com)
Date: Sat Dec 01 2001 - 07:47:14 EST


Hi,

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

--- linux/fs/Makefile.old Sat Dec 1 13:26:58 2001
+++ linux/fs/Makefile Sat Dec 1 13:15:42 2001
@@ -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 \
--- linux/fs/seq_file.c.old Sat Dec 1 13:26:49 2001
+++ linux/fs/seq_file.c Sat Dec 1 12:57:17 2001
@@ -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);

-- 
Peter Österlund             petero2@telia.com
Sköndalsvägen 35            http://w1.894.telia.com/~u89404340
S-128 66 Sköndal            +46 8 942647
Sweden
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 07 2001 - 21:00:16 EST