]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
arch/x86/kernel/ptrace.c: quiet sparse noise
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 8 Nov 2011 00:19:54 +0000 (11:19 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 8 Nov 2011 03:15:47 +0000 (14:15 +1100)
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 <hsweeten@visionengravers.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/kernel/ptrace.c

index 82528799c5deece6e4da9758a520b82420763bfc..89a04c7b5bb6f600ff764bf3c91900880e47db4e 100644 (file)
@@ -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;