From 4434d3386943bf32dc7873eafb7c7e6239a3c2a3 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 18 Mar 2010 18:59:57 -0700 Subject: Sprinkle static to prevent unnecessary inclusion * runtime/stack.c (_stp_stack_print_tsk): Static. (_stp_stack_snprint_tsk): Static. * runtime/task_finder.c (__stp_utrace_task_finder_ops): Static. --- runtime/stack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/stack.c') diff --git a/runtime/stack.c b/runtime/stack.c index 118a44b7..53b0a718 100644 --- a/runtime/stack.c +++ b/runtime/stack.c @@ -186,7 +186,7 @@ static void _stp_stack_snprint(char *str, int size, struct pt_regs *regs, int ve #endif /* CONFIG_KPROBES */ -void _stp_stack_print_tsk(struct task_struct *tsk, int verbose, int levels) +static void _stp_stack_print_tsk(struct task_struct *tsk, int verbose, int levels) { #if defined(STAPCONF_KERNEL_STACKTRACE) int i; @@ -213,7 +213,7 @@ void _stp_stack_print_tsk(struct task_struct *tsk, int verbose, int levels) * @param tsk A pointer to the task_struct * @returns void */ -void _stp_stack_snprint_tsk(char *str, int size, struct task_struct *tsk, int verbose, int levels) +static void _stp_stack_snprint_tsk(char *str, int size, struct task_struct *tsk, int verbose, int levels) { _stp_pbuf *pb = per_cpu_ptr(Stp_pbuf, smp_processor_id()); _stp_print_flush(); -- cgit