Re: 2.5.45: NTFS unresolved symbol

From: Andrew Morton (akpm@digeo.com)
Date: Fri Nov 01 2002 - 14:48:48 EST


Pawel Kot wrote:
>
> On Fri, 1 Nov 2002, Dieter [iso-8859-15] Nützel wrote:
>
> > depmod: *** Unresolved symbols in /lib/modules/2.5.45/kernel/fs/ntfs/ntfs.o
> > depmod: page_states__per_cpu
> > /lib/modules/2.5.45/kernel/fs/ntfs/ntfs.o
>
> Hi, The following patch should fix it:
> --- kernel/ksyms.c~ Fri Nov 1 13:16:51 2002
> +++ kernel/ksyms.c Fri Nov 1 13:16:51 2002
> @@ -112,6 +112,7 @@
> EXPORT_SYMBOL(vunmap);
> EXPORT_SYMBOL(vmalloc_to_page);
> EXPORT_SYMBOL(remap_page_range);
> +EXPORT_SYMBOL(page_states__per_cpu);
> #ifndef CONFIG_DISCONTIGMEM
> EXPORT_SYMBOL(contig_page_data);
> EXPORT_SYMBOL(mem_map);

Oh gawd. Here's what happened..

We have these magical symbols which describe the offset of
a member of the per-cpu storage, which need to be exposed
to modules. So I added an EXPORT_PER_CPU_SYMBOL() helper:

#define EXPORT_PER_CPU_SYMBOL(var) EXPORT_SYMBOL(var##__per_cpu)
#define EXPORT_PER_CPU_SYMBOL_GPL(var) EXPORT_SYMBOL_GPL(var##__per_cpu)

Which works OK without module versioning. But with module versioning,
genksyms goes looking through source files for "EXPORT_SYMBOL". Which
isn't there.

So sigh. Need to go back to the drawing board on that one. In
the meantime, this should work?

--- 25/mm/page_alloc.c~genksyms-hurts Fri Nov 1 11:47:42 2002
+++ 25-akpm/mm/page_alloc.c Fri Nov 1 11:47:53 2002
@@ -650,7 +650,7 @@ unsigned int nr_free_highpages (void)
  * during and after execution of this function.
  */
 DEFINE_PER_CPU(struct page_state, page_states) = {0};
-EXPORT_PER_CPU_SYMBOL(page_states);
+EXPORT_SYMBOL(page_states__per_cpu);
 
 void __get_page_state(struct page_state *ret, int nr)
 {

.
-
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 : Thu Nov 07 2002 - 22:00:21 EST