This adds the forced_successful_syscall_return() macro, a mate to force_successful_syscall_return() to test rather than set the condition. Signed-off-by: Roland McGrath <roland@xxxxxxxxxx> --- include/linux/ptrace.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index ebe0c17..9272e63 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h @@ -124,8 +124,13 @@ int generic_ptrace_pokedata(struct task_struct *tsk, long addr, long data); * is a no-op and the spurious error condition needs to be filtered out by some * other means (e.g., in user-level, by passing an extra argument to the * syscall handler, or something along those lines). + * + * On architectures that define force_successful_syscall_return(), + * forced_successful_syscall_return() should also be defined. + * It returns nonzero if force_successful_syscall_return() was just used. */ #define force_successful_syscall_return() do { } while (0) +#define forced_successful_syscall_return() 0 #endif /* -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html