arch/x86/kernel/ptrace.c: quiet sparse noise
Subsystems (2)
PATCH 1/1 arch/x86/kernel/ptrace.c: quiet sparse noise
The function ptrace_set_debugreg is only used in this file and should be static. This quiets the following sparse warning:
warning: symbol 'ptrace_set_debugreg' was not declared. Should it be static?
Signed-off-by H Hartley Sweeten <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Richard Weinberger <[email protected]>
---
arch/x86/kernel/ptrace.c +2 -1
@@ -749,7 +749,8 @@ put:/* * Handle PTRACE_POKEUSR calls for the debug register area. */ -int ptrace_set_debugreg (struct task_struct *tsk,int n,unsigned long val) +static int ptrace_set_debugreg (struct task_struct *tsk,int n, +unsigned long val) {struct thread_struct *thread = &(tsk->thread);int rc =0 ;