public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft•net>
To: dwmw2@infradead•org
Cc: akpm@osdl•org, linuxppc-dev@ozlabs•org, sam@ravnborg•org,
	linux-kernel@vger•kernel.org, rmk@arm•linux.org.uk
Subject: Re: [PATCH] Complain about missing system calls.
Date: Thu, 08 Mar 2007 16:14:07 -0800 (PST)	[thread overview]
Message-ID: <20070308.161407.63995586.davem@davemloft.net> (raw)
In-Reply-To: <1173394873.3461.510.camel@pmac.infradead.org>

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
+#define __IGNORE_stty
+#define __IGNORE_gtty
+#define __IGNORE_ftime
+#define __IGNORE_prof
+#define __IGNORE_lock
+#define __IGNORE_mpx
+#define __IGNORE_ulimit
+#define __IGNORE_profil
+#define __IGNORE_ioperm
+#define __IGNORE_iopl
+#define __IGNORE_idle
+#define __IGNORE_modify_ldt
+#define __IGNORE_getpmsg
+#define __IGNORE_putpmsg
+#define __IGNORE_ugetrlimit
 #define __IGNORE_mmap2
 #define __IGNORE_vm86
 #define __IGNORE_vm86old

  reply	other threads:[~2007-03-09  0:14 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 [this message]
2007-03-09  0:18   ` David Woodhouse
2007-03-20 12:12   ` Sam Ravnborg
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:51     ` David Howells
2007-03-20 10:56     ` Russell King
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=20070308.161407.63995586.davem@davemloft.net \
    --to=davem@davemloft$(echo .)net \
    --cc=akpm@osdl$(echo .)org \
    --cc=dwmw2@infradead$(echo .)org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=rmk@arm$(echo .)linux.org.uk \
    --cc=sam@ravnborg$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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