arm64: Drop asmlinkage qualifier from syscall_trace_{enter,exit}
authorWill Deacon <will.deacon@arm.com>
Thu, 12 Jul 2018 14:14:23 +0000 (15:14 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 12 Jul 2018 14:14:23 +0000 (15:14 +0100)
syscall_trace_{enter,exit} are only called from C code, so drop the
asmlinkage qualifier from their definitions.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/ptrace.c

index 489db362460691339c8ad20755f14e7b7859e616..379b2b714193321a4c2ebf8871346da20ad1a61a 100644 (file)
@@ -1631,7 +1631,7 @@ static void tracehook_report_syscall(struct pt_regs *regs,
        regs->regs[regno] = saved_reg;
 }
 
-asmlinkage int syscall_trace_enter(struct pt_regs *regs)
+int syscall_trace_enter(struct pt_regs *regs)
 {
        if (test_thread_flag(TIF_SYSCALL_TRACE))
                tracehook_report_syscall(regs, PTRACE_SYSCALL_ENTER);
@@ -1649,7 +1649,7 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs)
        return regs->syscallno;
 }
 
-asmlinkage void syscall_trace_exit(struct pt_regs *regs)
+void syscall_trace_exit(struct pt_regs *regs)
 {
        audit_syscall_exit(regs);