diff mbox

[U-Boot] board: m5253demo, fix gcc-5.2.0 compilation warnings

Message ID 1450660705-9930-1-git-send-email-angelo@sysam.it
State Accepted
Commit b411f2af49117171a6f5d696f08a01b2f4a35c3b
Delegated to: Jason Jin
Headers show

Commit Message

Angelo Dureghello Dec. 21, 2015, 1:18 a.m. UTC
Fix gcc-5.2.0 buildman warnings:
warning: 'w' is static but declared in inline function 'spin_wheel'
which is not static
warning: 'p' is static but declared in inline function 'spin_wheel'
which is not static

Signed-off-by: Angelo Dureghello <angelo@sysam.it>

---

 board/freescale/m5253demo/flash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Tom Rini Dec. 21, 2015, 3:04 a.m. UTC | #1
On Mon, Dec 21, 2015 at 02:18:24AM +0100, Angelo Dureghello wrote:

> Fix gcc-5.2.0 buildman warnings:
> warning: 'w' is static but declared in inline function 'spin_wheel'
> which is not static
> warning: 'p' is static but declared in inline function 'spin_wheel'
> which is not static
> 
> Signed-off-by: Angelo Dureghello <angelo@sysam.it>
> 

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox

Patch

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[] = "\\/-";