arm64: use the correct function type for __arm64_sys_ni_syscall

Calling sys_ni_syscall through a syscall_fn_t pointer trips indirect
call Control-Flow Integrity checking due to a function type
mismatch. Use SYSCALL_DEFINE0 for __arm64_sys_ni_syscall instead and
remove the now unnecessary casts.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
Sami Tolvanen 2019-05-24 15:11:18 -07:00 • committed by Will Deacon
commit 1e29ab3186
2 changed files with 11 additions and 10 deletions