Re: "expected specifier-qualifier-list" ERROR while adding a new system call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 29 Apr 2007 21:12:24 -0700 (PDT) Irfan Ahmed wrote:

> 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_implementation_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

Looks like Makefile problems.  How did you try to make/build this?


> 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;
> }

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux