Skip to contentSkip to conversation

can't build as module with reiser4-for-2.6.17-rc4-mm1-1.patch

reiser4 Laurent Riffard 2 participants 2 messages May 19, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

I just downloaded reiser4-for-2.6.17-rc4-mm1-1.patch and gave it a try. It seems that reiser4 won't build cleanly as a module.

Quoted 25 lines
  CC [M]  fs/reiser4/plugin/regular.o
  LD [M]  fs/reiser4/reiser4.o
  CC      drivers/base/class.o
  LD      drivers/base/built-in.o
  LD      drivers/built-in.o
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  AS      arch/i386/boot/setup.o
  LD      arch/i386/boot/setup
  OBJCOPY arch/i386/boot/compressed/vmlinux.bin
  GZIP    arch/i386/boot/compressed/vmlinux.bin.gz
  LD      arch/i386/boot/compressed/piggy.o
  LD      arch/i386/boot/compressed/vmlinux
Quoted 11 lines

OBJCOPY arch/i386/boot/vmlinux.bin
BUILD arch/i386/boot/bzImage
Root device is (254, 4)
Boot sector 512 bytes.
Setup is 7183 bytes.
System is 1309 kB
Kernel: arch/i386/boot/bzImage is ready (#6)
Building modules, stage 2.
MODPOST
WARNING: "__copy_from_user_ll_nocache" [fs/reiser4/reiser4.ko] undefined!
LD [M] fs/reiser4/reiser4.ko

The attached patch solved it.
~~
laurent

reiser4 needs __copy_from_user_ll_nocache when built as a module.

---
 arch/i386/lib/usercopy.c |    1 +
 1 files changed, 1 insertion(+)
arch/i386/lib/usercopy.c +1 -0
Index: linux-2.6-mm/arch/i386/lib/usercopy.c
===================================================================
@@ -708,6 +708,7 @@ unsigned long __copy_from_user_ll_nocach
 #endif
 	return n;
 }
+EXPORT_SYMBOL(__copy_from_user_ll_nocache);
 
 /**
  * copy_to_user: - Copy a block of data into user space.
#1 lore raw

Hello

Quoted 42 lines · Laurent Riffard

Hello,

I just downloaded reiser4-for-2.6.17-rc4-mm1-1.patch and gave it a try. It seems that reiser4 won't build cleanly as a module.

Quoted 25 lines
  CC [M]  fs/reiser4/plugin/regular.o
  LD [M]  fs/reiser4/reiser4.o
  CC      drivers/base/class.o
  LD      drivers/base/built-in.o
  LD      drivers/built-in.o
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  AS      arch/i386/boot/setup.o
  LD      arch/i386/boot/setup
  OBJCOPY arch/i386/boot/compressed/vmlinux.bin
  GZIP    arch/i386/boot/compressed/vmlinux.bin.gz
  LD      arch/i386/boot/compressed/piggy.o
  LD      arch/i386/boot/compressed/vmlinux
Quoted 11 lines

OBJCOPY arch/i386/boot/vmlinux.bin
BUILD arch/i386/boot/bzImage
Root device is (254, 4)
Boot sector 512 bytes.
Setup is 7183 bytes.
System is 1309 kB
Kernel: arch/i386/boot/bzImage is ready (#6)
Building modules, stage 2.
MODPOST
WARNING: "__copy_from_user_ll_nocache" [fs/reiser4/reiser4.ko] undefined!
LD [M] fs/reiser4/reiser4.ko

Quoted 1 line

The attached patch solved it.

Thanks for your help

Quoted 3 lines

~~
laurent