Commit:     66200ea2228da6aaf317d21e67b1157aae7168e7
Parent:     13dbf42210565418e925f883e9217b9eda5244a2
Author:     Ananth N Mavinakayanahalli <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 15 21:59:17 2008 +1100
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Wed Feb 20 13:33:37 2008 +1100

    [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
    Signed-off-by: Ananth N Mavinakayanahalli <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 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 5338e48..c176c51 100644
--- a/arch/powerpc/kernel/kprobes.c
+++ b/arch/powerpc/kernel/kprobes.c
@@ -274,7 +274,7 @@ no_kprobe:
  *     - When the probed function returns, this probe
  *             causes the handlers to fire
-void kretprobe_trampoline_holder(void)
+static void __used kretprobe_trampoline_holder(void)
        asm volatile(".global kretprobe_trampoline\n"
@@ -284,7 +284,8 @@ void kretprobe_trampoline_holder(void)
  * Called when the probe at kretprobe trampoline is hit
-int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs)
+static int __kprobes trampoline_probe_handler(struct kprobe *p,
+                                               struct pt_regs *regs)
        struct kretprobe_instance *ri = NULL;
        struct hlist_head *head, empty_rp;
@@ -517,12 +518,12 @@ int __kprobes setjmp_pre_handler(struct kprobe *p, struct 
pt_regs *regs)
        return 1;
-void __kprobes jprobe_return(void)
+void __used __kprobes jprobe_return(void)
        asm volatile("trap" ::: "memory");
-void __kprobes jprobe_return_end(void)
+static void __used __kprobes jprobe_return_end(void)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to