[PATCH] missing EXPORT_SYMBOLs break NFS in 2.4.0-test9-pre6

From: Mikael Pettersson (mikpe@csd.uu.se)
Date: Sun Sep 24 2000 - 14:00:54 EST


2.4.0-test9-pre6 breaks building NFS as a module. pre6 changed lockd
to use two new functions locks_init_lock() and locks_copy_lock().
However, these functions aren't exported, resulting in:

/lib/modules/2.4.0-test9-pre6/kernel/fs/lockd/lockd.o: unresolved symbol locks_init_lock
/lib/modules/2.4.0-test9-pre6/kernel/fs/lockd/lockd.o: unresolved symbol locks_copy_lock
/lib/modules/2.4.0-test9-pre6/kernel/fs/lockd/lockd.o: insmod /lib/modules/2.4.0-test9-pre6/kernel/fs/lockd/lockd.o failed
/lib/modules/2.4.0-test9-pre6/kernel/fs/lockd/lockd.o: insmod lockd failed

The obvious fix is to export these symbols. Please apply the patch below.

/Mikael

--- linux-2.4.0-test9-pre6/kernel/ksyms.c.~1~ Sun Sep 24 19:16:07 2000
+++ linux-2.4.0-test9-pre6/kernel/ksyms.c Sun Sep 24 19:51:56 2000
@@ -215,6 +215,8 @@
 EXPORT_SYMBOL(page_hash_table);
 EXPORT_SYMBOL(file_lock_list);
 EXPORT_SYMBOL(file_lock_sem);
+EXPORT_SYMBOL(locks_init_lock);
+EXPORT_SYMBOL(locks_copy_lock);
 EXPORT_SYMBOL(posix_lock_file);
 EXPORT_SYMBOL(posix_test_lock);
 EXPORT_SYMBOL(posix_block_lock);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 30 2000 - 21:00:12 EST