aboutsummaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-05-08 22:14:35 -0400
committerTom Rini <trini@konsulko.com>2017-05-12 08:37:33 -0400
commitb411f2af49117171a6f5d696f08a01b2f4a35c3b (patch)
tree8fd64b3d41280d07bc8ab12b6584ddbec6b0ac6c /board/freescale
parent82b9dc63db41ab7601a4caa31922ac58bf1160ef (diff)
downloadu-boot-b411f2af49117171a6f5d696f08a01b2f4a35c3b.zip
u-boot-b411f2af49117171a6f5d696f08a01b2f4a35c3b.tar.gz
u-boot-b411f2af49117171a6f5d696f08a01b2f4a35c3b.tar.bz2
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>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/m5253demo/flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/m5253demo/flash.c b/board/freescale/m5253demo/flash.c
index 071701d..099deca 100644
--- a/board/freescale/m5253demo/flash.c
+++ b/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);
int flash_get_offsets(ulong base, flash_info_t * info);
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];
@@ -439,7 +439,7 @@ int write_word(flash_info_t * info, FPWV * dest, u16 data)
return (res);
}
-void inline spin_wheel(void)
+static inline void spin_wheel(void)
{
static int p = 0;
static char w[] = "\\/-";