diff mbox series

[U-Boot,1/2] mx6: clock: Add a prototype for do_mx6_showclocks()

Message ID 1507205758-16195-1-git-send-email-diego.dorta@nxp.com
State Accepted
Commit 342b4b09b1fb58753bc46609d5ea68759b7d8626
Delegated to: Stefano Babic
Headers show
Series [U-Boot,1/2] mx6: clock: Add a prototype for do_mx6_showclocks() | expand

Commit Message

Diego Dorta Oct. 5, 2017, 12:15 p.m. UTC
When compiling with W=1 the following warning is observed:

arch/arm/mach-imx/mx6/clock.c:1268:5: warning: no previous prototype for ‘do_mx6_showclocks’ [-Wmissing-prototypes] int do_mx6_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])

Remove this warning by adding the function prototype into arch-mx6/clock.h file.

Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
---
 arch/arm/include/asm/arch-mx6/clock.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Stefano Babic Oct. 12, 2017, 4:22 p.m. UTC | #1
On 05/10/2017 14:15, Diego Dorta wrote:
> When compiling with W=1 the following warning is observed:
> 
> arch/arm/mach-imx/mx6/clock.c:1268:5: warning: no previous prototype for ‘do_mx6_showclocks’ [-Wmissing-prototypes] int do_mx6_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
> 
> Remove this warning by adding the function prototype into arch-mx6/clock.h file.
> 
> Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
> ---
>  arch/arm/include/asm/arch-mx6/clock.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/include/asm/arch-mx6/clock.h b/arch/arm/include/asm/arch-mx6/clock.h
> index 2d9c45e..26afefb 100644
> --- a/arch/arm/include/asm/arch-mx6/clock.h
> +++ b/arch/arm/include/asm/arch-mx6/clock.h
> @@ -80,4 +80,5 @@ void enable_thermal_clk(void);
>  void mxs_set_lcdclk(u32 base_addr, u32 freq);
>  void select_ldb_di_clock_source(enum ldb_di_clock clk);
>  void enable_eim_clk(unsigned char enable);
> +int do_mx6_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
>  #endif /* __ASM_ARCH_CLOCK_H */
> 

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/arch/arm/include/asm/arch-mx6/clock.h b/arch/arm/include/asm/arch-mx6/clock.h
index 2d9c45e..26afefb 100644
--- a/arch/arm/include/asm/arch-mx6/clock.h
+++ b/arch/arm/include/asm/arch-mx6/clock.h
@@ -80,4 +80,5 @@  void enable_thermal_clk(void);
 void mxs_set_lcdclk(u32 base_addr, u32 freq);
 void select_ldb_di_clock_source(enum ldb_di_clock clk);
 void enable_eim_clk(unsigned char enable);
+int do_mx6_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
 #endif /* __ASM_ARCH_CLOCK_H */