Re: [PATCH] Fix compile error in arch/x86/kernel/syscall_64.c

From: Jody McIntyre
Date: Wed Dec 03 2008 - 16:23:38 EST

On Wed, Dec 03, 2008 at 12:17:47PM -0800, H. Peter Anvin wrote:

> I was particularly suspicious because you said "one of my systems",
> which implies other systems don't behave that way...

I have one other system that can build this kernel, and one that gets
further. The differences are gcc version (all distro-supplied),
.config, and in one case X86_32 vs. X86_64.

> Now, the syscall_64.i you sent me is the working version, right? Could
> you send me the non-working version, too?

That's the non-working version. I just verified:

root@vm1:~/linux-2.6# make clean && make arch/x86/kernel/syscall_64.o
CC arch/x86/kernel/syscall_64.o
arch/x86/kernel/syscall_64.c:27: error: array index in initializer exceeds array bounds
arch/x86/kernel/syscall_64.c:27: error: (near initialization for âsys_call_tableâ)
arch/x86/kernel/syscall_64.c:27: warning: excess elements in array initializer
arch/x86/kernel/syscall_64.c:27: warning: (near initialization for âsys_call_tableâ)
make[1]: *** [arch/x86/kernel/syscall_64.o] Error 1
make: *** [arch/x86/kernel/syscall_64.o] Error 2
root@vm1:~/linux-2.6# make arch/x86/kernel/syscall_64.i
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/
CPP arch/x86/kernel/syscall_64.i

The resulting .i file is identical (checked md5sum) to the one on the
http site:

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at