Re: modules/ksyms/filenames

Stephen C. Tweedie (sct@redhat.com)
Thu, 19 Jul 2001 23:36:25 +0100


Hi,

On Thu, Jul 19, 2001 at 03:54:00PM -0600, Peter J. Braam wrote:
> I'm trying to export a symbol (journal_begin/end) from
> fs/reiserfs/journal.c. To export the symbols I added to the Makefile:
> export-objs := journal.o
>
> There is also a file fs/jbd/journal.c which exports symbols.
>
> It seems that the two journal.ver files in include/modules/*.ver get
> clobbered.
>
> Short of renaming files, is there a good solution for this?

Yes, you can add the EXPORT_SYMBOL to a different source file --- you
don't have to do the export from the same file which defines the
symbol. linux/kernel/ksyms.c contains exports from all over the rest
of the kernel, for example. If you pick a reiserfs source file which
already exports symbols and add your exports there, I _think_ it
should work OK.

Cheers,
Stephen
-
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/