From: Ralf Baechle <ralf@linux-mips.org>
To: Jaswinder Singh <jaswinder@infradead.org>
Cc: LKML <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>,
David Woodhouse <dwmw2@infradead.org>,
rth@twiddle.net, rmk@arm.linux.org.uk, hskinnemoen@atmel.com,
cooloney@kernel.org, starvik@axis.com, dhowells@redhat.com,
ysato@users.sourceforge.jp, tony.luck@intel.com,
takata@linux-m32r.org, geert@linux-m68k.org, matthew@wil.cx,
schwidefsky@de.ibm.com, lethal@linux-sh.org, chris@zankel.net
Subject: Re: [PATCH] Introducing asm/syscalls.h
Date: Sun, 20 Jul 2008 14:17:27 +0100 [thread overview]
Message-ID: <20080720131727.GA22822@linux-mips.org> (raw)
In-Reply-To: <1216556263.2707.2.camel@jaswinder.satnam>
On Sun, Jul 20, 2008 at 05:47:43PM +0530, Jaswinder Singh wrote:
> index 7cd25b8..af24926 100644
> --- a/include/asm-generic/Kbuild.asm
> +++ b/include/asm-generic/Kbuild.asm
> @@ -27,6 +27,7 @@ unifdef-y += socket.h
> unifdef-y += sockios.h
> unifdef-y += stat.h
> unifdef-y += statfs.h
> +unifdef-y += syscalls.h
> unifdef-y += termbits.h
> unifdef-y += termios.h
> unifdef-y += types.h
>
> Thank you,
No. Why would userspace want to know about these entry points?
I'd also like to point you at two other commits I just made:
http://www.linux-mips.org/g/linux/a599080f
http://www.linux-mips.org/g/linux/3c339dba
The first deletes the unused sys_truncate64 and sys_ftruncate64 entry-points
and the second resolves conflicting prototypes for sys_pipe() - MIPS uses
it's own sys_pipe() which conflicts with the one declared in
<linux/syscalls.h>. The patch below takes care of that and also includes
the ptrace.h which is needed to make <asm/syscalls.h> work without
relying on other headers having been included previously. Could you fold
that into your patch? Thanks,
Ralf
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/syscalls.h | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
Index: linux-mips/include/asm-mips/syscalls.h
===================================================================
--- linux-mips.orig/include/asm-mips/syscalls.h
+++ linux-mips/include/asm-mips/syscalls.h
@@ -12,6 +12,7 @@
#ifndef _ASM_MIPS_SYSCALLS_H
#define _ASM_MIPS_SYSCALLS_H
+#include <linux/ptrace.h>
#include <asm/sim.h>
/* kernel/signal.c */
@@ -26,14 +27,8 @@ asmlinkage int sys_rt_sigsuspend(nabi_no
asmlinkage int sys_sigaltstack(nabi_no_regargs struct pt_regs);
asmlinkage void sys_rt_sigreturn(nabi_no_regargs struct pt_regs);
-/* kernel/linux32.c */
-asmlinkage int sys_truncate64(const char __user *, unsigned int,
- unsigned int);
-asmlinkage int sys_ftruncate64(unsigned int, unsigned int,
- unsigned int);
-
/* kernel/syscalls.c */
-asmlinkage int sys_pipe(nabi_no_regargs volatile struct pt_regs);
+asmlinkage int sysm_pipe(nabi_no_regargs volatile struct pt_regs);
asmlinkage unsigned long old_mmap(unsigned long, unsigned long,
int, int, int, off_t);
next prev parent reply other threads:[~2008-07-20 13:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-20 9:09 [PATCH] Introducing asm/syscalls.h Jaswinder Singh
2008-07-20 10:00 ` Ralf Baechle
2008-07-20 12:17 ` Jaswinder Singh
2008-07-20 13:06 ` Jaswinder Singh
2008-07-20 13:17 ` Ralf Baechle [this message]
2008-07-20 13:24 ` Jaswinder Singh
2008-07-20 19:05 ` 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=20080720131727.GA22822@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=chris@zankel.net \
--cc=cooloney@kernel.org \
--cc=dhowells@redhat.com \
--cc=dwmw2@infradead.org \
--cc=geert@linux-m68k.org \
--cc=hskinnemoen@atmel.com \
--cc=jaswinder@infradead.org \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=mingo@elte.hu \
--cc=rmk@arm.linux.org.uk \
--cc=rth@twiddle.net \
--cc=schwidefsky@de.ibm.com \
--cc=starvik@axis.com \
--cc=takata@linux-m32r.org \
--cc=tony.luck@intel.com \
--cc=ysato@users.sourceforge.jp \
/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.