--- zzzz-none-000/linux-4.1.38/include/linux/ptrace.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/linux/ptrace.h 2020-11-25 10:06:48.000000000 +0000 @@ -279,7 +279,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. */ } @@ -293,7 +293,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 @@ -322,7 +322,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. */ } @@ -334,8 +334,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;