Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
arch/microblaze/kernel/unwind.c
··· 59 59 * 60 60 * Return - Number of stack bytes the instruction reserves or reclaims 61 61 */ 62 - inline long get_frame_size(unsigned long instr) 62 + static inline long get_frame_size(unsigned long instr) 63 63 { 64 64 return abs((s16)(instr & 0xFFFF)); 65 65 }