For arches which include asm-generic/syscalls.h as well as newly introduced CONFIG_GENERIC_SIGALTSTACK, there's a build breakage due to conflicting prototypes of sys_sigaltstack(), due to removal of struct pt_regs from latter based code. ----------------------->8------------------------- In file included from /home/vineetg/arc/upstream-kernel/arch/arc/include/asm/syscalls.h:25, from arch/arc/kernel/sys.c:6: include/asm-generic/syscalls.h:26: error: conflicting types for 'sys_sigaltstack' include/linux/syscalls.h:304: note: previous declaration of 'sys_sigaltstack' was here make[2]: *** [arch/arc/kernel/sys.o] Error 1 ----------------------->8------------------------- Signed-off-by: Vineet Gupta <vgupta@xxxxxxxxxxxx> Cc: james.hogan@xxxxxxxxxx Cc: arnd@xxxxxxxx Cc: torvalds@xxxxxxxxxxxxxxxxxxxx Cc: linux-kernel@xxxxxxxxxxxxxxx Cc: linux-arch@xxxxxxxxxxxxxxx --- include/asm-generic/syscalls.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/syscalls.h b/include/asm-generic/syscalls.h index 58f466f..1db51b8 100644 --- a/include/asm-generic/syscalls.h +++ b/include/asm-generic/syscalls.h @@ -21,10 +21,12 @@ asmlinkage long sys_mmap(unsigned long addr, unsigned long len, unsigned long fd, off_t pgoff); #endif +#ifndef CONFIG_GENERIC_SIGALTSTACK #ifndef sys_sigaltstack asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *, struct pt_regs *); #endif +#endif #ifndef sys_rt_sigreturn asmlinkage long sys_rt_sigreturn(struct pt_regs *regs); -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html