Prev: uml: Fix warning due to missing task_struct declaration
Next: request_firmware API exhaust memory
From: Amerigo Wang on 20 Apr 2010 06:10 On Mon, Apr 19, 2010 at 11:53:07PM +0200, Jan Kiszka wrote: >The i386 subarch happens to pull in original NR_syscalls. Maybe we can >make that work for all host arch, but for now just avoid the clash by >using an all-upper-case name. > Where? >Signed-off-by: Jan Kiszka <jan.kiszka(a)web.de> >--- > arch/um/kernel/skas/syscall.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/arch/um/kernel/skas/syscall.c b/arch/um/kernel/skas/syscall.c >index 4e3b820..f5173e1 100644 >--- a/arch/um/kernel/skas/syscall.c >+++ b/arch/um/kernel/skas/syscall.c >@@ -10,7 +10,7 @@ > #include "sysdep/syscalls.h" > > extern int syscall_table_size; >-#define NR_syscalls (syscall_table_size / sizeof(void *)) >+#define NR_SYSCALLS (syscall_table_size / sizeof(void *)) > > void handle_syscall(struct uml_pt_regs *r) > { >@@ -30,7 +30,7 @@ void handle_syscall(struct uml_pt_regs *r) > * in case it's a compiler bug. > */ > syscall = UPT_SYSCALL_NR(r); >- if ((syscall >= NR_syscalls) || (syscall < 0)) >+ if ((syscall >= NR_SYSCALLS) || (syscall < 0)) > result = -ENOSYS; > else result = EXECUTE_SYSCALL(syscall, regs); > >-- >1.6.0.2 > >-- >To unsubscribe from this list: send the line "unsubscribe linux-kernel" in >the body of a message to majordomo(a)vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html >Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Jan Kiszka on 20 Apr 2010 13:20 Amerigo Wang wrote: > On Mon, Apr 19, 2010 at 11:53:07PM +0200, Jan Kiszka wrote: >> The i386 subarch happens to pull in original NR_syscalls. Maybe we can >> make that work for all host arch, but for now just avoid the clash by >> using an all-upper-case name. >> > > Where? Not sure if this answers your question: CC arch/um/kernel/skas/syscall.o /data/linux-2.6/arch/um/kernel/skas/syscall.c:13:1: warning: "NR_syscalls" redefined In file included from /data/linux-2.6/arch/x86/include/asm/unistd.h:3, from /data/linux-2.6/arch/um/sys-i386/shared/sysdep/syscalls.h:6, from /data/linux-2.6/arch/um/kernel/skas/syscall.c:10: /data/linux-2.6/arch/x86/include/asm/unistd_32.h:349:1: warning: this is the location of the previous definition Jan
From: Amerigo Wang on 21 Apr 2010 02:10 On Tue, Apr 20, 2010 at 07:14:43PM +0200, Jan Kiszka wrote: >Amerigo Wang wrote: >> On Mon, Apr 19, 2010 at 11:53:07PM +0200, Jan Kiszka wrote: >>> The i386 subarch happens to pull in original NR_syscalls. Maybe we can >>> make that work for all host arch, but for now just avoid the clash by >>> using an all-upper-case name. >>> >> >> Where? > >Not sure if this answers your question: > > CC arch/um/kernel/skas/syscall.o >/data/linux-2.6/arch/um/kernel/skas/syscall.c:13:1: warning: >"NR_syscalls" redefined >In file included from /data/linux-2.6/arch/x86/include/asm/unistd.h:3, > from >/data/linux-2.6/arch/um/sys-i386/shared/sysdep/syscalls.h:6, > from /data/linux-2.6/arch/um/kernel/skas/syscall.c:10: >/data/linux-2.6/arch/x86/include/asm/unistd_32.h:349:1: warning: this is >the location of the previous definition > Ah, sure. I misunderstood your purpose, please do include the warning messages you are trying to fix in your patch description. Thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Jiri Kosina on 10 May 2010 17:40 On Wed, 21 Apr 2010, Amerigo Wang wrote: > >> Where? > > > >Not sure if this answers your question: > > > > CC arch/um/kernel/skas/syscall.o > >/data/linux-2.6/arch/um/kernel/skas/syscall.c:13:1: warning: > >"NR_syscalls" redefined > >In file included from /data/linux-2.6/arch/x86/include/asm/unistd.h:3, > > from > >/data/linux-2.6/arch/um/sys-i386/shared/sysdep/syscalls.h:6, > > from /data/linux-2.6/arch/um/kernel/skas/syscall.c:10: > >/data/linux-2.6/arch/x86/include/asm/unistd_32.h:349:1: warning: this is > >the location of the previous definition > > > > Ah, sure. I misunderstood your purpose, please do include the warning > messages you are trying to fix in your patch description. The patch doesn't seem to be present in linux-next as of today. I have applied it to my queue. Thanks, -- Jiri Kosina SUSE Labs, Novell Inc. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: uml: Fix warning due to missing task_struct declaration Next: request_firmware API exhaust memory |