All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Matthew Wilcox <matthew@wil.cx>,
	David Miller <davem@davemloft.net>,
	linux-arch@vger.kernel.org
Subject: Re: missing syscalls
Date: Sun, 1 Apr 2007 22:32:39 +0100	[thread overview]
Message-ID: <20070401213239.GC24987@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20070401201929.GB10652@uranus.ravnborg.org>

On Sun, Apr 01, 2007 at 10:19:29PM +0200, Sam Ravnborg wrote:
> On Sun, Apr 01, 2007 at 02:09:47PM -0600, Matthew Wilcox wrote:
> > On Sun, Apr 01, 2007 at 12:23:45PM -0700, David Miller wrote:
> > > You should hook both of these syscalls up even if the config option
> > > that enables them usually is not, or cannot currently be, enabled.
> > > 
> > > The cond_syscall()'s will make sure they always link properly and
> > > provide a -ENOSYS implementation.
> > > 
> > > Hooking them up makes it easier to check future missed cases without
> > > us having to add a plethora of ifdefs to the missing syscall checks
> > > for each platform.
> > 
> > I haven't looked at the missing syscall check implementation, but it seems
> > like it's poorly designed if we have to add ifdefs for each arch.  Why not
> > allow arches a mechanism to state which syscalls they intentionally
> > don't implement?
> 
> It's a stupid script so it is easy to fool.
> The following patch makes x86_64 shut up:
> 
> diff --git a/include/asm-x86_64/unistd.h b/include/asm-x86_64/unistd.h
> index c5f596e..6f73918 100644
> --- a/include/asm-x86_64/unistd.h
> +++ b/include/asm-x86_64/unistd.h
> @@ -620,6 +620,9 @@ __SYSCALL(__NR_vmsplice, sys_vmsplice)
>  #define __NR_move_pages		279
>  __SYSCALL(__NR_move_pages, sys_move_pages)
>  
> +#define __NR_getcpu             /* 318 - not relevant */
> +#define __NR_epoll_pwait        /* 319 - not relevant */
> +

If a syscall is not relevant, define __IGNORE_getcpu etc instead.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:

  reply	other threads:[~2007-04-01 21:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-01 16:01 missing syscalls Sam Ravnborg
2007-04-01 19:15 ` Russell King
2007-04-01 19:23   ` David Miller
2007-04-01 20:09     ` Matthew Wilcox
2007-04-01 20:16       ` David Miller
2007-04-01 20:44         ` Matthew Wilcox
2007-04-01 20:19       ` Sam Ravnborg
2007-04-01 21:32         ` Russell King [this message]
2007-04-01 23:12         ` Arnd Bergmann
2007-04-01 19:23   ` Sam Ravnborg
2007-04-01 21:33     ` Russell King
2007-04-01 20:54 ` Andi Kleen
2007-04-01 21:10   ` Sam Ravnborg
2007-04-02  5:58     ` Andi Kleen
2007-04-02 12:31       ` Matthew Wilcox
2007-04-12 20:51 ` David Miller

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=20070401213239.GC24987@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=davem@davemloft.net \
    --cc=linux-arch@vger.kernel.org \
    --cc=matthew@wil.cx \
    --cc=sam@ravnborg.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.