All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] board: m5253demo, fix gcc-5.2.0 compilation warnings
@ 2015-12-21  1:18 Angelo Dureghello
  2015-12-21  3:04 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Angelo Dureghello @ 2015-12-21  1:18 UTC (permalink / raw)
  To: u-boot

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(-)

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] board: m5253demo, fix gcc-5.2.0 compilation warnings
  2015-12-21  1:18 [U-Boot] [PATCH] board: m5253demo, fix gcc-5.2.0 compilation warnings Angelo Dureghello
@ 2015-12-21  3:04 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2015-12-21  3:04 UTC (permalink / raw)
  To: u-boot

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>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151220/fc954402/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-21  3:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-21  1:18 [U-Boot] [PATCH] board: m5253demo, fix gcc-5.2.0 compilation warnings Angelo Dureghello
2015-12-21  3:04 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.