From: Sam Ravnborg <sam@ravnborg.org>
To: David Miller <davem@davemloft.net>
Cc: akpm@osdl.org, linuxppc-dev@ozlabs.org, dwmw2@infradead.org,
linux-kernel@vger.kernel.org, rmk@arm.linux.org.uk
Subject: Re: [PATCH] Complain about missing system calls.
Date: Tue, 20 Mar 2007 13:12:51 +0100 [thread overview]
Message-ID: <20070320121251.GB10240@uranus.ravnborg.org> (raw)
In-Reply-To: <20070308.161407.63995586.davem@davemloft.net>
On Thu, Mar 08, 2007 at 04:14:07PM -0800, David Miller wrote:
> From: David Woodhouse <dwmw2@infradead.org>
> Date: Thu, 08 Mar 2007 23:01:13 +0000
>
> > Most system calls seem to get added to i386 first. This patch
> > automatically generates a warning for any new system call which is
> > implemented on i386 but not the architecture currently being compiled.
> > On PowerPC at the moment, for example, it results in these warnings:
> > init/missing_syscalls.h:935:3: warning: #warning syscall sync_file_range not implemented
> > init/missing_syscalls.h:947:3: warning: #warning syscall getcpu not implemented
> > init/missing_syscalls.h:950:3: warning: #warning syscall epoll_pwait not implemented
> >
> > Signed-off-by: David Woodhouse <dwmw2@infradead.org>
>
> David, thanks for this __incredibly__ __useful__ patch. I kicked it
> around on sparc64 and found some more ignores to add, see below.
>
> The vast majority of them vector to sys_ni_syscall in the i386 syscall
> table.
>
> sys_ugetrlimit is only necessary if the platform started out
> using the non-SuS compliant sys_old_getrlimit()
>
> The rest, like ioperm, iopl, modify_ldt, et al. are i386
> specific.
>
> Signed-off-by: David S. Miller <davem@davemloft.net>
>
> --- a/init/missing_syscalls.c.ORIG 2007-03-08 16:11:00.000000000 -0800
> +++ b/init/missing_syscalls.c 2007-03-08 16:02:30.000000000 -0800
> @@ -18,6 +18,22 @@
> #endif
>
> /* i386-specific or historical system calls */
> +#define __IGNORE_break
Could it make sense to keep this in arch specific header files?
So when we fiddle with ARM we do not impact SPARC etc.
And in this way ARCH specific changes are kept in ARCH specific files.
For the "Ignore historical" part this should be in a common file I think.
So in other words:
init/missing_syscalls.h => Contains common stuff and include:
include/asm/missing_syscalls.h => contains ARCH specific stuff.
Sam
next prev parent reply other threads:[~2007-03-20 12:46 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-08 23:01 [PATCH] Complain about missing system calls David Woodhouse
2007-03-09 0:14 ` David Miller
2007-03-09 0:18 ` David Woodhouse
2007-03-20 12:12 ` Sam Ravnborg [this message]
2007-03-09 3:31 ` Anton Blanchard
2007-03-09 8:43 ` Russell King
2007-03-09 16:11 ` Andi Kleen
2007-03-09 16:38 ` Jan-Benedict Glaw
2007-03-09 19:00 ` Andi Kleen
2007-03-09 19:35 ` Jan-Benedict Glaw
2007-03-10 9:58 ` Martin Schwidefsky
2007-03-09 19:40 ` H. Peter Anvin
2007-03-09 20:13 ` Russell King
2007-03-09 20:52 ` H. Peter Anvin
2007-03-09 16:47 ` Benjamin Herrenschmidt
2007-03-09 18:54 ` Andi Kleen
2007-03-10 9:51 ` Martin Schwidefsky
2007-03-09 17:20 ` David Woodhouse
2007-03-19 23:42 ` Andrew Morton
2007-03-20 7:43 ` David Woodhouse
2007-03-20 10:56 ` Russell King
2007-03-20 10:51 ` David Howells
2007-03-21 11:25 ` David Woodhouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070320121251.GB10240@uranus.ravnborg.org \
--to=sam@ravnborg.org \
--cc=akpm@osdl.org \
--cc=davem@davemloft.net \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=rmk@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).