--- zzzz-none-000/linux-2.6.39.4/include/linux/ptrace.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/ptrace.h 2021-11-10 13:23:10.000000000 +0000 @@ -252,7 +252,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 __attribute__((unused))) { BUG(); /* This can never be called. */ } @@ -266,7 +266,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 __attribute__((unused))) { } #else @@ -295,7 +295,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 __attribute__((unused))) { BUG(); /* This can never be called. */ } @@ -304,10 +304,10 @@ #endif /* arch_has_block_step */ #ifdef ARCH_HAS_USER_SINGLE_STEP_INFO -extern void user_single_step_siginfo(struct task_struct *tsk, +extern void user_single_step_siginfo(struct task_struct *tsk __attribute__((unused)), struct pt_regs *regs, siginfo_t *info); #else -static inline void user_single_step_siginfo(struct task_struct *tsk, +static inline void user_single_step_siginfo(struct task_struct *tsk __attribute__((unused)), struct pt_regs *regs, siginfo_t *info) { memset(info, 0, sizeof(*info));