microblaze: Mark get_frame_size as static
authorMichal Simek <michal.simek@xilinx.com>
Thu, 18 Dec 2014 14:45:38 +0000 (15:45 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 5 Jan 2015 11:36:44 +0000 (12:36 +0100)
It is used only locally in unwind.c.

The patch removes warning:
arch/microblaze/kernel/unwind.c:62:13: warning: no previous prototype
for 'get_frame_size' [-Wmissing-prototypes]
 inline long get_frame_size(unsigned long instr)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/kernel/unwind.c

index 1f7b8d4496681e452dc5d8f13f817ca8100a2c88..61c04eed14d5fae6e1d6d57adbe39977d2a9e456 100644 (file)
@@ -59,7 +59,7 @@ struct stack_trace;
  *
  * Return - Number of stack bytes the instruction reserves or reclaims
  */
-inline long get_frame_size(unsigned long instr)
+static inline long get_frame_size(unsigned long instr)
 {
        return abs((s16)(instr & 0xFFFF));
 }