Re: 2.2.0-pre1: unresolved symbol put_filp in loop.o

Paul (PELaufer@CSUPomona.edu)
Tue, 29 Dec 1998 00:13:47 -0800 (PST)


On Tue, 29 Dec 1998, Steffen Zahn wrote:

> Hello,
>
> it appears that loop.o when compiled as a module in 2.2.0-pre1
> is missing a symbol put_filp.
>
> Regards
> Steffen

Yep. This is a new function in 2.2.0-pre1. A quick search through the
patch file showed that it was an addition to linux/fs/file_table.c, and
from the filename (and the contents of the file) we see that it is a
filesystem function. So this patch inserts a call to EXPORT_SYMBOL for
put_filp in the correct category in ksyms.c. Now that was easy! Next time
you do it ;)

Paul Laufer

--- linux/kernel/ksyms.c.orig Tue Dec 29 00:10:23 1998
+++ linux/kernel/ksyms.c Mon Dec 28 23:40:15 1998
@@ -129,6 +129,7 @@
EXPORT_SYMBOL(get_empty_filp);
EXPORT_SYMBOL(init_private_file);
EXPORT_SYMBOL(fput);
+EXPORT_SYMBOL(put_filp);
EXPORT_SYMBOL(check_disk_change);
EXPORT_SYMBOL(invalidate_buffers);
EXPORT_SYMBOL(invalidate_inodes);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/