Skip to content

Commit 61670b4

Browse files
lukasstraub2richardweinberger
authored andcommitted
um: Cleanup syscall_handler_t cast in syscalls_32.h
Like in f4f03f2 "um: Cleanup syscall_handler_t definition/cast, fix warning", remove the cast to to fix the compiler warning. Signed-off-by: Lukas Straub <lukasstraub2@web.de> Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 521a547 commit 61670b4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

arch/x86/um/shared/sysdep/syscalls_32.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
#include <asm/unistd.h>
77
#include <sysdep/ptrace.h>
88

9-
typedef long syscall_handler_t(struct pt_regs);
9+
typedef long syscall_handler_t(struct syscall_args);
1010

1111
extern syscall_handler_t *sys_call_table[];
1212

1313
#define EXECUTE_SYSCALL(syscall, regs) \
14-
((long (*)(struct syscall_args)) \
15-
(*sys_call_table[syscall]))(SYSCALL_ARGS(&regs->regs))
14+
((*sys_call_table[syscall]))(SYSCALL_ARGS(&regs->regs))

0 commit comments

Comments
 (0)