]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arch/x86/kernel/ptrace.c: quiet sparse noise
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 5 Oct 2011 00:42:27 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 11 Oct 2011 08:43:29 +0000 (19:43 +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;