diff options
author | Ananth N Mavinakayanahalli <ananth@in.ibm.com> | 2008-02-15 05:59:17 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-02-19 21:33:37 -0500 |
commit | 66200ea2228da6aaf317d21e67b1157aae7168e7 (patch) | |
tree | cdfdc745b8e435f90573002d22e13f4fc6436b9e /arch/powerpc/kernel/kprobes.c | |
parent | 13dbf42210565418e925f883e9217b9eda5244a2 (diff) |
[POWERPC] Kill sparse warnings in kprobes
Fix sparse warnings in powerpc kprobes:
CHECK arch/powerpc/kernel/kprobes.c
arch/powerpc/kernel/kprobes.c:277:6: warning: symbol 'kretprobe_trampoline_holder' was not declared. Should it be static?
arch/powerpc/kernel/kprobes.c:287:15: warning: symbol 'trampoline_probe_handler' was not declared. Should it be static?
arch/powerpc/kernel/kprobes.c:525:16: warning: symbol 'jprobe_return_end' was not declared. Should it be static?
Fix along the same lines as http://lkml.org/lkml/2008/2/13/642
Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/kprobes.c')
-rw-r--r-- | arch/powerpc/kernel/kprobes.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c index 5338e4855712..c176c513566b 100644 --- a/arch/powerpc/kernel/kprobes.c +++ b/arch/powerpc/kernel/kprobes.c | |||
@@ -274,7 +274,7 @@ no_kprobe: | |||
274 | * - When the probed function returns, this probe | 274 | * - When the probed function returns, this probe |
275 | * causes the handlers to fire | 275 | * causes the handlers to fire |
276 | */ | 276 | */ |
277 | void kretprobe_trampoline_holder(void) | 277 | static void __used kretprobe_trampoline_holder(void) |
278 | { | 278 | { |
279 | asm volatile(".global kretprobe_trampoline\n" | 279 | asm volatile(".global kretprobe_trampoline\n" |
280 | "kretprobe_trampoline:\n" | 280 | "kretprobe_trampoline:\n" |
@@ -284,7 +284,8 @@ void kretprobe_trampoline_holder(void) | |||
284 | /* | 284 | /* |
285 | * Called when the probe at kretprobe trampoline is hit | 285 | * Called when the probe at kretprobe trampoline is hit |
286 | */ | 286 | */ |
287 | int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs) | 287 | static int __kprobes trampoline_probe_handler(struct kprobe *p, |
288 | struct pt_regs *regs) | ||
288 | { | 289 | { |
289 | struct kretprobe_instance *ri = NULL; | 290 | struct kretprobe_instance *ri = NULL; |
290 | struct hlist_head *head, empty_rp; | 291 | struct hlist_head *head, empty_rp; |
@@ -517,12 +518,12 @@ int __kprobes setjmp_pre_handler(struct kprobe *p, struct pt_regs *regs) | |||
517 | return 1; | 518 | return 1; |
518 | } | 519 | } |
519 | 520 | ||
520 | void __kprobes jprobe_return(void) | 521 | void __used __kprobes jprobe_return(void) |
521 | { | 522 | { |
522 | asm volatile("trap" ::: "memory"); | 523 | asm volatile("trap" ::: "memory"); |
523 | } | 524 | } |
524 | 525 | ||
525 | void __kprobes jprobe_return_end(void) | 526 | static void __used __kprobes jprobe_return_end(void) |
526 | { | 527 | { |
527 | }; | 528 | }; |
528 | 529 | ||