OSDN Git Service

arm64: use {COMPAT,}SYSCALL_DEFINE0 for sigreturn
authorMark Rutland <mark.rutland@arm.com>
Wed, 11 Jul 2018 13:56:53 +0000 (14:56 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 12 Jul 2018 13:49:48 +0000 (14:49 +0100)
commitbf4ce5cc23c9f8357bfd9c0328bf59685664cbc7
treeb14a552809f81f3ed141f22cd6053a0d8152ae23
parent3f7deccb037cc2bd2f848576439c033f81daeb6a
arm64: use {COMPAT,}SYSCALL_DEFINE0 for sigreturn

We don't currently annotate our various sigreturn functions as syscalls,
as we need to do to use pt_regs syscall wrappers.

Let's mark them as real syscalls.

For compat_sys_sigreturn and compat_sys_rt_sigreturn, this changes the
return type from int to long, matching the prototypes in sys32.c.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/signal.c
arch/arm64/kernel/signal32.c