Re: [PATCH] Introducing asm/syscalls.h

From: Ralf Baechle
Date: Sun Jul 20 2008 - 09:21:14 EST


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@xxxxxxxxxxxxxx>

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);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/