diff options
author | Lukas Straub <lukasstraub2@web.de> | 2022-08-26 15:29:27 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-10-26 13:19:17 +0200 |
commit | 8690a1266219c785524eeb74787da2a4df28e3a0 (patch) | |
tree | 01addebb26a7f26836d1674b1884af33a363b36e /arch | |
parent | 65d7f77be7e91cd1c5d6e677f59f5c0de9b36bba (diff) | |
download | linux-stable-8690a1266219c785524eeb74787da2a4df28e3a0.tar.gz linux-stable-8690a1266219c785524eeb74787da2a4df28e3a0.tar.bz2 linux-stable-8690a1266219c785524eeb74787da2a4df28e3a0.zip |
um: Cleanup syscall_handler_t cast in syscalls_32.h
[ Upstream commit 61670b4d270c71219def1fbc9441debc2ac2e6e9 ]
Like in f4f03f299a56ce4d73c5431e0327b3b6cb55ebb9
"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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/um/shared/sysdep/syscalls_32.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/um/shared/sysdep/syscalls_32.h b/arch/x86/um/shared/sysdep/syscalls_32.h index 68fd2cf526fd..f6e9f84397e7 100644 --- a/arch/x86/um/shared/sysdep/syscalls_32.h +++ b/arch/x86/um/shared/sysdep/syscalls_32.h @@ -6,10 +6,9 @@ #include <asm/unistd.h> #include <sysdep/ptrace.h> -typedef long syscall_handler_t(struct pt_regs); +typedef long syscall_handler_t(struct syscall_args); extern syscall_handler_t *sys_call_table[]; #define EXECUTE_SYSCALL(syscall, regs) \ - ((long (*)(struct syscall_args)) \ - (*sys_call_table[syscall]))(SYSCALL_ARGS(®s->regs)) + ((*sys_call_table[syscall]))(SYSCALL_ARGS(®s->regs)) |