From: H Hartley Sweeten Date: Wed, 16 Nov 2011 23:41:03 +0000 (+1100) Subject: arch/x86/kernel/ptrace.c: quiet sparse noise X-Git-Tag: next-20111122~1^2~113 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1535ddf433715d63f3b28c0d5a7e16097fc46fb3;p=karo-tx-linux.git arch/x86/kernel/ptrace.c: quiet sparse noise 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 Signed-off-by: Andrew Morton --- diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index 82528799c5de..89a04c7b5bb6 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c @@ -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;