summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-12-18 15:45:38 +0100
committerMichal Simek <michal.simek@xilinx.com>2015-01-05 12:36:44 +0100
commite14ebe417c7c4e58c50ef143d99d797757749762 (patch)
tree6624a11350f41333583babb51e046578a7d2b72d /arch/microblaze/kernel
parent8543e6c96762fcc930af5725088c2b9e4865c3aa (diff)
downloadop-kernel-dev-e14ebe417c7c4e58c50ef143d99d797757749762.zip
op-kernel-dev-e14ebe417c7c4e58c50ef143d99d797757749762.tar.gz
microblaze: Mark get_frame_size as static
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>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r--arch/microblaze/kernel/unwind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/unwind.c b/arch/microblaze/kernel/unwind.c
index 1f7b8d4..61c04ee 100644
--- a/arch/microblaze/kernel/unwind.c
+++ b/arch/microblaze/kernel/unwind.c
@@ -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));
}
OpenPOWER on IntegriCloud