When I tried to build an uml kernel with loadable module support I got an error. Reproducible: Always Steps to Reproduce: Compile the uml kernel with loadable module support: cd /usr/src/uml make menuconfig ARCH=um make ARCH=um --> error Actual Results: CC arch/um/kernel/ksyms.o arch/um/kernel/ksyms.c:90: error: redefinition of `__kstrtab_os_ioctl_generic' arch/um/kernel/ksyms.c:76: error: `__kstrtab_os_ioctl_generic' previously defined here arch/um/kernel/ksyms.c:90: error: redefinition of `__ksymtab_os_ioctl_generic' arch/um/kernel/ksyms.c:76: error: `__ksymtab_os_ioctl_generic' previously defined here make[1]: *** [arch/um/kernel/ksyms.o] Error 1 make: *** [arch/um/kernel] Error 2 Expected Results: I avoided this error by commenting out the EXPORT_SYMBOLs in ksyms.c. This works for me.
Created attachment 59105 [details, diff] uml-modules.patch
which kernel version?
Sorry for the confusion. I just realized, that I used the old 2.6.8.1-r8 usermode sources. I will try the most recent version.