diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2011-11-15 17:48:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-12-05 10:48:23 -0500 |
commit | 98b8b99ae1233a5408b136544e900a9cfb46e08f (patch) | |
tree | 079a8c1d31d050f538d14379bd49904f86a60d41 /arch/x86 | |
parent | cced40229993bb63238299e48a22e4c8d1e13181 (diff) |
arch/x86/kernel/ptrace.c: Quiet sparse noise
ptrace_set_debugreg() is only used in this file and should be
static. This also 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>
Cc: hartleys@visionengravers.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/ptrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
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: | |||
749 | /* | 749 | /* |
750 | * Handle PTRACE_POKEUSR calls for the debug register area. | 750 | * Handle PTRACE_POKEUSR calls for the debug register area. |
751 | */ | 751 | */ |
752 | int ptrace_set_debugreg(struct task_struct *tsk, int n, unsigned long val) | 752 | static int ptrace_set_debugreg(struct task_struct *tsk, int n, |
753 | unsigned long val) | ||
753 | { | 754 | { |
754 | struct thread_struct *thread = &(tsk->thread); | 755 | struct thread_struct *thread = &(tsk->thread); |
755 | int rc = 0; | 756 | int rc = 0; |