Skip to content

Commit d48ca5b

Browse files
Brian GerstKAGA-KOKO
authored andcommitted
x86/uml/syscalls: Remove array index from syscall initializers
The recent syscall table generator rework removed the index from the initializers for native x86 syscall tables, but missed the UML syscall tables. Fixes: 44fe489 ("Stop filling syscall arrays with *_sys_ni_syscall") Signed-off-by: Brian Gerst <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Masahiro Yamada <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1eb8a49 commit d48ca5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/x86/um/sys_call_table_32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <asm/syscalls_32.h>
3232

3333
#undef __SYSCALL
34-
#define __SYSCALL(nr, sym) [ nr ] = sym,
34+
#define __SYSCALL(nr, sym) sym,
3535

3636
extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
3737

arch/x86/um/sys_call_table_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include <asm/syscalls_64.h>
4040

4141
#undef __SYSCALL
42-
#define __SYSCALL(nr, sym) [ nr ] = sym,
42+
#define __SYSCALL(nr, sym) sym,
4343

4444
extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
4545

0 commit comments

Comments
 (0)