MIPS: asm: syscall: Add the syscall_rollback function
authorMarkos Chandras <[email protected]>
Wed, 22 Jan 2014 14:39:58 +0000 (14:39 +0000)
committerRalf Baechle <[email protected]>
Wed, 26 Mar 2014 22:09:08 +0000 (23:09 +0100)
The syscall_rollback function is used by seccomp-bpf but it was never
added for MIPS. It doesn't need to do anything as none of the registers
are clobbered if the system call has been denied by the seccomp filter.

Signed-off-by: Markos Chandras <[email protected]>
Reviewed-by: James Hogan <[email protected]>
Reviewed-by: Paul Burton <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/6403/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/include/asm/syscall.h

index 33e8dbfc1b631626b3f52dd9c60d27957ae0f364..2981ef5bb0922a75b03803f2f495368b54fcc6d4 100644 (file)
@@ -65,6 +65,12 @@ static inline long syscall_get_return_value(struct task_struct *task,
        return regs->regs[2];
 }
 
+static inline void syscall_rollback(struct task_struct *task,
+                                   struct pt_regs *regs)
+{
+       /* Do nothing */
+}
+
 static inline void syscall_set_return_value(struct task_struct *task,
                                            struct pt_regs *regs,
                                            int error, long val)