arch/i386/kernel/built-in.o: In function `sys_call_table': error
Hello,
I've added one file mySysCall.c (to add new system call) in path linux-2.6.22.14/drivers/usb/storage/mySysCall.c
I've put this file in this path becuase I need to call one function defined in linux-2.6.22.14/drivers/usb/storage/usb.c. But when I build the kernel at the end I 'm getting following error.
root@test-desktop:/home/test/linux-2.6.22.14# make -j4
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
SKIPPED include/linux/compile.h
GEN .version
CHK include/linux/compile.h
SKIPPED include/linux/compile.h
LD .tmp_vmlinux1
arch/i386/kernel/built-in.o: In function `sys_call_table':
(.rodata+0x510): undefined reference to `sys_allow_usb_storage'
make: *** [.tmp_vmlinux1] Error 1
root@test-desktop:/home/test/linux-2.6.22.14#
I've updated linux-2.6.22.14/drivers/usb/storage/Makefile to build mySysCall.c and I see linux-2.6.22.14/drivers/usb/storage/mySysCall.o git built.
Any idea how to fix this problem ? or can any body suggest how can I call api from linux-2.6.22.14/drivers/usb/storage/usb.c. in my system call.
|