> 
> Hi.
> 
> When I build 2.4.16 kernel with jfs-1.0.11, I've got the following error.
> Please let me know how to solve this.
> 
> fs/fs.o(.text.init+0x10d4): undefined reference to `txExit'
> fs/fs.o(.text.init+0x10d9): undefined reference to `metapage_exit'
> make: *** [vmlinux] Error 1
> 
> The missing function are declared as
> 
>       void __exit txExit(void)
>       void __exit metapage_exit(void)

This is a bug, and I don't know why are seeing this problem, and no one else
has.

These two functions are declared to be in the 'exit' section, but they are
called from both __init and __exit code.  The fix is to remove the __exit
keyword from their definitions.

Thanks,
Dave Kleikamp


Index: linux24/fs/jfs/jfs_metapage.c
===================================================================
RCS file: /usr/cvs/jfs/linux24/fs/jfs/jfs_metapage.c,v
retrieving revision 1.23
diff -u -r1.23 jfs_metapage.c
--- linux24/fs/jfs/jfs_metapage.c       2001/11/20 16:37:37     1.23
+++ linux24/fs/jfs/jfs_metapage.c       2001/12/20 14:30:38
@@ -148,7 +148,7 @@
        return 0;
 }
 
-void __exit metapage_exit(void)
+void metapage_exit(void)
 {
        free_pages((unsigned long) metapage_buf, meta_order);
        free_pages((unsigned long) hash_table, hash_order);
Index: linux24/fs/jfs/jfs_txnmgr.c
===================================================================
RCS file: /usr/cvs/jfs/linux24/fs/jfs/jfs_txnmgr.c,v
retrieving revision 1.20
diff -u -r1.20 jfs_txnmgr.c
--- linux24/fs/jfs/jfs_txnmgr.c 2001/11/27 17:12:48     1.20
+++ linux24/fs/jfs/jfs_txnmgr.c 2001/12/20 14:30:39
@@ -286,7 +286,7 @@
  *
  * FUNCTION:    clean up when module is unloaded
  */
-void __exit txExit(void)
+void txExit(void)
 {
        vfree(TxLock);
        TxLock = 0;
_______________________________________________
Jfs-discussion mailing list
[EMAIL PROTECTED]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jfs-discussion

Reply via email to