Skip to content

Commit 9271b0b

Browse files
pelikanH. Peter Anvin
authored andcommitted
x86, um: Correct syscall table type attributes breaking gcc 4.8
The latest GCC 4.8 does some more checking on type attributes that break the build for ARCH=um -> fill them in. Specifically, the "asmlinkage" attributes is now tested for consistency. Signed-off-by: Martin Pelikan <pelikan@storkhole.cz> Link: http://lkml.kernel.org/r/1339269731-10772-1-git-send-email-pelikan@storkhole.cz Acked-by: Richard Weinberger <richard@nod.at> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
1 parent 7724953 commit 9271b0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/um/sys_call_table_32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
#undef __SYSCALL_I386
4040
#define __SYSCALL_I386(nr, sym, compat) [ nr ] = sym,
4141

42-
typedef void (*sys_call_ptr_t)(void);
42+
typedef asmlinkage void (*sys_call_ptr_t)(void);
4343

44-
extern void sys_ni_syscall(void);
44+
extern asmlinkage void sys_ni_syscall(void);
4545

4646
const sys_call_ptr_t sys_call_table[] __cacheline_aligned = {
4747
/*

0 commit comments

Comments
 (0)