浏览代码

m5253demo: Fix static variable in non-static inline function warning

The function 'spin_wheel' is declared as inline, but not static and thus
we see warnings that 'w' and 'p' are declared static in a non-static
inline function.  Correct this by marking spin_wheel as static inline.

Cc: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Tom Rini 8 年之前
父节点
当前提交
b411f2af49
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      board/freescale/m5253demo/flash.c

+ 2 - 2
board/freescale/m5253demo/flash.c

@@ -31,7 +31,7 @@ typedef volatile unsigned short FLASH_PORT_WIDTHV;
 ulong flash_get_size(FPWV * addr, flash_info_t * info);
 ulong flash_get_size(FPWV * addr, flash_info_t * info);
 int flash_get_offsets(ulong base, flash_info_t * info);
 int flash_get_offsets(ulong base, flash_info_t * info);
 int write_word(flash_info_t * info, FPWV * dest, u16 data);
 int write_word(flash_info_t * info, FPWV * dest, u16 data);
-void inline spin_wheel(void);
+static inline void spin_wheel(void);
 
 
 flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
@@ -439,7 +439,7 @@ int write_word(flash_info_t * info, FPWV * dest, u16 data)
 	return (res);
 	return (res);
 }
 }
 
 
-void inline spin_wheel(void)
+static inline void spin_wheel(void)
 {
 {
 	static int p = 0;
 	static int p = 0;
 	static char w[] = "\\/-";
 	static char w[] = "\\/-";