LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   "expected specifier-qualifier-list" ERROR while adding a new system call (https://www.linuxquestions.org/questions/linux-kernel-70/expected-specifier-qualifier-list-error-while-adding-a-new-system-call-550036/)

ahm_irf 04-29-2007 10:52 PM

"expected specifier-qualifier-list" ERROR while adding a new system call
 
Hi,

I have tried to add a new system call. I am using Fedora linux 6 ..Kernel 2.6.18.2
I followed the document http://nd.edu/~ablaich/system_call_i...n_a_blaich.txt to add a new system call.

During compilation I got the following error. I have place my system call code in ~/ipc/ which is also as follows. Does any body has idea about this error.
___________________________________________________________
In file included from include/linux/shm.h:4,
from ipc/mycall.c:2:
include/linux/ipc.h:59: error: expected specifier-qualifier-list before ‘spinlock_t’
ipc/mycall.c:3:21: error: inttypes.h: No such file or directory
make[1]: *** [ipc/mycall.o] Error 1
make: *** [ipc] Error 2
__________________________________________________________________

/*System call code*/

#include<linux/linkage.h>
#include<linux/shm.h>
#include<linux/types.h>


asmlinkage long sys_mycall(int i)
{
return i+10;
}_____________________________________________


All times are GMT -5. The time now is 04:45 PM.