OSDN Git Service

microblaze: Fix sparse warning - unwind.c
authorMichal Simek <monstr@monstr.eu>
Mon, 7 Feb 2011 10:51:07 +0000 (11:51 +0100)
committerMichal Simek <monstr@monstr.eu>
Wed, 9 Mar 2011 07:09:58 +0000 (08:09 +0100)
Warning log:
CHECK   arch/microblaze/kernel/unwind.c
arch/microblaze/kernel/unwind.c:186:6: warning: symbol 'microblaze_unwind_inner' was not declared. Should it be static?

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/unwind.c

index fefac5c..9781a52 100644 (file)
@@ -183,7 +183,7 @@ static inline void unwind_trap(struct task_struct *task, unsigned long pc,
  * @trace : Where to store stack backtrace (PC values).
  *         NULL == print backtrace to kernel log
  */
-void microblaze_unwind_inner(struct task_struct *task,
+static void microblaze_unwind_inner(struct task_struct *task,
                             unsigned long pc, unsigned long fp,
                             unsigned long leaf_return,
                             struct stack_trace *trace)