From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Tue, 04 Nov 2014 09:50:56 +0200 Subject: [U-Boot] [PATCH] common.h: Add prototype of arch_preboot_os In-Reply-To: <1415085249-31363-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> References: <1415085249-31363-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> Message-ID: <54588560.9000009@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 11/04/14 09:14, Nobuhiro Iwamatsu wrote: > When we used arch_preboot_os() function because prototype of this is not > declared, following warning is output. Or.. you just need to include the correct file: $ grep -nr arch_preboot_os include/ include/bootm.h:57:void arch_preboot_os(void); > > ----- > warning: function declaration isn't a prototype [-Wstrict-prototypes] > ----- > > This adds prototype of arch_preboot_os() to include/common.h. > > Signed-off-by: Nobuhiro Iwamatsu > --- > include/common.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/common.h b/include/common.h > index d5020c8..8ee9ca5 100644 > --- a/include/common.h > +++ b/include/common.h > @@ -318,6 +318,9 @@ void board_show_dram(ulong size); > */ > int arch_fixup_fdt(void *blob); > > +/* Set arch specific config before boot */ > +void arch_preboot_os(void); > + > /* common/flash.c */ > void flash_perror (int); > > -- Regards, Igor.