ntfs.ko needs unknown symbol end_iomem (under uml)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
Quoted 23 lines · Anton Altaparmakov
Quoted 6 lines · Yura Pakhuchiy
Hi Anton,
When I compile ntfs as module for UML I receive during build:
*** Warning: "end_iomem" [fs/ntfs/ntfs.ko] undefined!It's ntfs bug or uml bug? Or am I doing something wrong?
UML is broken. It defines
VMALLOC_STARTto ((end_iomem+VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1)) but it clearly does not exportend_iomemto modules which means modules cannot useVMALLOC_START.But ntfs uses
VMALLOC_STARTto determine if a pointer is in kmalloc()-ed memory or vmalloc()-ed memory so if you want to build it as a module you need to fix uml to exportend_iomem, i.e. by for example adding:
EXPORT_SYMBOL(end_iomem);after the
end_iomemdefinition inarch/um/kernel/um_arch.cand the reconfiguring, recbuilding the kernel.
Quoted 6 lines
You may wish to report this to LKML / the UML maintainer (after you have made sure that this does actually fix it).
Best regards,
Anton
I didn't find UML maintainer in MAINTAINERS, so I send this to [email protected].
I added line that Anton suggested and it's fixed above bug. Patch below.
Best regards,
Yura
arch/um/kernel/um_arch.c 2004-10-21 17:14:18.000000000 +0300 renamed from arch/um/kernel/um_arch.c 2004-10-19 20:50:05.000000000 +0300 +1 -0
@@ -300,6 +300,7 @@ static void __init uml_postsetup(void) /* Set during early boot */ unsigned long brk_start; unsigned long end_iomem; +EXPORT_SYMBOL(end_iomem); #define MIN_VMALLOC (32 * 1024 * 1024)