From: David Woodhouse Date: Tue, 15 Jul 2008 14:58:03 +0000 Subject: Re: [PATCH] x86: Introducing asm-x86/syscalls.h Message-Id: <1216133883.27455.252.camel@shinybook.infradead.org> List-Id: References: <1216114072.21749.1.camel@jaswinder.satnam> <1216127174.30096.3.camel@jaswinder.satnam> In-Reply-To: <1216127174.30096.3.camel@jaswinder.satnam> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jaswinder Singh Cc: LKML , Linus Torvalds , Alan Cox , kernelnewbies , kernel-janitors On Tue, 2008-07-15 at 18:36 +0530, Jaswinder Singh wrote: > Updated Patch: > > declaring arch-dependent syscalls for x86 under one hood Thanks Jaswinder, this looks quite sensible in general and should go some way towards making sparse shut up about undeclared functions. You should Cc Ingo though. I don't like this bit though: > --- a/include/linux/syscalls.h > +++ b/include/linux/syscalls.h > @@ -65,6 +65,10 @@ struct getcpu_cache; > #include > #include > > +#ifdef CONFIG_X86 > +#include > +#endif > + > asmlinkage long sys_time(time_t __user *tloc); > asmlinkage long sys_stime(time_t __user *tptr); > asmlinkage long sys_gettimeofday(struct timeval __user *tv, We're going to want to do this for all architectures, aren't we? Perhaps it's better to provide for all architectures from the beginning, and not bother with the ifdef? Or if you must have an ifdef, perhaps make it on something like ARCH_HAS_ASM_SYSCALLS_H rather than having to change it every time an architecture adds its own file? -- dwmw2