From: Jon Loeliger Date: Mon, 01 May 2006 14:23:33 -0500 Subject: [U-Boot-Users] PATCH: Declare load_serial_ymodem() for both CFG_CMD_LOAD{S,B} Message-ID: <1146511413.24239.16.camel@cashmere.sps.mot.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Declare load_serial_ymodem() for both CFG_CMD_LOAD{S,B} as it appears to be needed by both the loadb and loads commands now. Signed-off-by: Jon Loeliger --- load_serial_ymodem() seems oddly mis-named now. :-) diff --git a/common/cmd_load.c b/common/cmd_load.c index 2432ee2..df5a022 100644 --- a/common/cmd_load.c +++ b/common/cmd_load.c @@ -33,9 +33,12 @@ #include DECLARE_GLOBAL_DATA_PTR; +#if (CONFIG_COMMANDS & CFG_CMD_LOADB) | (CONFIG_COMMANDS & CFG_CMD_LOADS) +static ulong load_serial_ymodem (ulong offset); +#endif + #if (CONFIG_COMMANDS & CFG_CMD_LOADS) static ulong load_serial (ulong offset); -static ulong load_serial_ymodem (ulong offset); static int read_record (char *buf, ulong len); # if (CONFIG_COMMANDS & CFG_CMD_SAVES) static int save_serial (ulong offset, ulong size);