Patchwork [U-Boot] ARM: MX3: fix warning: function declaration isn't a prototype

login
register
mail settings
Submitter Wolfgang Denk
Date Aug. 5, 2011, 12:19 p.m.
Message ID <1312546745-20949-1-git-send-email-wd@denx.de>
Download mbox | patch
Permalink /patch/108644/
State Superseded
Delegated to: Stefano Babic
Headers show

Comments

Wolfgang Denk - Aug. 5, 2011, 12:19 p.m.
Fix:

include/asm/arch/clock.h:35: warning: function declaration isn't a prototype

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
---
 arch/arm/include/asm/arch-mx31/clock.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Stefano Babic - Aug. 5, 2011, 12:56 p.m.
On 08/05/2011 02:19 PM, Wolfgang Denk wrote:
> Fix:
> 
> include/asm/arch/clock.h:35: warning: function declaration isn't a prototype
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
> ---

Already fixed on u-boot-imx....

Best regards,
Stefano Babic

Patch

diff --git a/arch/arm/include/asm/arch-mx31/clock.h b/arch/arm/include/asm/arch-mx31/clock.h
index fb035c4..b132676 100644
--- a/arch/arm/include/asm/arch-mx31/clock.h
+++ b/arch/arm/include/asm/arch-mx31/clock.h
@@ -32,7 +32,7 @@  enum mxc_clock {
 };
 
 unsigned int mxc_get_clock(enum mxc_clock clk);
-extern u32 imx_get_uartclk();
+extern u32 imx_get_uartclk(void);
 extern void mx31_gpio_mux(unsigned long mode);
 extern void mx31_set_pad(enum iomux_pins pin, u32 config);