--- zzzz-none-000/linux-4.1.52/include/linux/ptrace.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/ptrace.h 2022-03-02 11:37:13.000000000 +0000 @@ -281,7 +281,7 @@ * 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. */ } @@ -295,7 +295,7 @@ * 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 @@ -324,7 +324,7 @@ * 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. */ } @@ -336,8 +336,8 @@ 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;