]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: fix syscall_fn_t type
authorSami Tolvanen <samitolvanen@google.com>
Fri, 24 May 2019 22:11:16 +0000 (15:11 -0700)
committerWill Deacon <will.deacon@arm.com>
Wed, 29 May 2019 12:45:59 +0000 (13:45 +0100)
commite10220692ec819a6d868d2735e12ec06fa0b6c4b
tree15bcc8f93707752af437f537d389bfb36d7a465e
parent30b6be49ac1b394a35ad602a2417c8041a63c52c
arm64: fix syscall_fn_t type

Syscall wrappers in <asm/syscall_wrapper.h> use const struct pt_regs *
as the argument type. Use const in syscall_fn_t as well to fix indirect
call type mismatches with Control-Flow Integrity checking.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/syscall.h