--- zzzz-none-000/linux-3.10.107/include/linux/ptrace.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/ptrace.h 2021-11-10 11:53:56.000000000 +0000 @@ -282,7 +282,8 @@ * next single instruction executes. If arch_has_block_step() is defined, * this must clear the effects of user_enable_block_step() too. */ -static inline void user_enable_single_step(struct task_struct *task) +static inline void user_enable_single_step(struct task_struct *task + __maybe_unused) { BUG(); /* This can never be called. */ } @@ -296,7 +297,8 @@ * of those was ever called on @task, and even if arch_has_single_step() * returned zero. */ -static inline void user_disable_single_step(struct task_struct *task) +static inline void user_disable_single_step(struct task_struct *task + __maybe_unused) { } #else @@ -325,7 +327,8 @@ * Set @task so that when it returns to user mode, it will trap after the * next branch or trap taken. */ -static inline void user_enable_block_step(struct task_struct *task) +static inline void user_enable_block_step(struct task_struct *task + __maybe_unused) { BUG(); /* This can never be called. */ } @@ -337,8 +340,10 @@ extern void user_single_step_siginfo(struct task_struct *tsk, struct pt_regs *regs, siginfo_t *info); #else -static inline void user_single_step_siginfo(struct task_struct *tsk, - struct pt_regs *regs, siginfo_t *info) +static inline void user_single_step_siginfo(struct task_struct *tsk + __maybe_unused, + struct pt_regs *regs __maybe_unused, + siginfo_t * info) { memset(info, 0, sizeof(*info)); info->si_signo = SIGTRAP; @@ -412,7 +417,7 @@ extern int ptrace_get_breakpoints(struct task_struct *tsk); extern void ptrace_put_breakpoints(struct task_struct *tsk); #else -static inline void ptrace_put_breakpoints(struct task_struct *tsk) { } +static inline void ptrace_put_breakpoints(struct task_struct *tsk __maybe_unused) { } #endif /* CONFIG_HAVE_HW_BREAKPOINT */ #endif