Re: [U-Boot] [PATCH 1/4] ARM: prevent compiler warnings from bootm.c

2014-10-21 Thread Stefano Babic
Hi Eric,

On 01/10/2014 00:40, Eric Nelson wrote:

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/4] ARM: prevent compiler warnings from bootm.c

2014-10-11 Thread Albert ARIBAUD
Hi Eric,

On Tue, 30 Sep 2014 15:40:01 -0700, Eric Nelson
eric.nel...@boundarydevices.com wrote:

 Without preceding declarations, make C=1 generates
 Should it be static? warnings for symbols
   do_bootm_linux,
   boot_prep_vxworks, and
   boot_jump_vxworks
 
 Include of bootm.h also identified a signature mismatch
 (const on argv[]).
 
 Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com
 ---
  arch/arm/lib/bootm.c | 5 -
  1 file changed, 4 insertions(+), 1 deletion(-)
 
 diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
 index 39fe7a1..4949d57 100644
 --- a/arch/arm/lib/bootm.c
 +++ b/arch/arm/lib/bootm.c
 @@ -22,6 +22,8 @@
  #include asm/bootm.h
  #include asm/secure.h
  #include linux/compiler.h
 +#include bootm.h
 +#include vxworks.h
  
  #if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV7_VIRT)
  #include asm/armv7.h
 @@ -299,7 +301,8 @@ static void boot_jump_linux(bootm_headers_t *images, int 
 flag)
   * DIFFERENCE: Instead of calling prep and go at the end
   * they are called if subcommand is equal 0.
   */
 -int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 +int do_bootm_linux(int flag, int argc, char * const argv[],
 +bootm_headers_t *images)
  {
   /* No need for those on ARM */
   if (flag  BOOTM_STATE_OS_BD_T || flag  BOOTM_STATE_OS_CMDLINE)

Acked-by: Albert ARIBAUD albert.u.b...@aribaud.net

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/4] ARM: prevent compiler warnings from bootm.c

2014-09-30 Thread Eric Nelson
Without preceding declarations, make C=1 generates
Should it be static? warnings for symbols
do_bootm_linux,
boot_prep_vxworks, and
boot_jump_vxworks

Include of bootm.h also identified a signature mismatch
(const on argv[]).

Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com
---
 arch/arm/lib/bootm.c | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 39fe7a1..4949d57 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -22,6 +22,8 @@
 #include asm/bootm.h
 #include asm/secure.h
 #include linux/compiler.h
+#include bootm.h
+#include vxworks.h
 
 #if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV7_VIRT)
 #include asm/armv7.h
@@ -299,7 +301,8 @@ static void boot_jump_linux(bootm_headers_t *images, int 
flag)
  * DIFFERENCE: Instead of calling prep and go at the end
  * they are called if subcommand is equal 0.
  */
-int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
+int do_bootm_linux(int flag, int argc, char * const argv[],
+  bootm_headers_t *images)
 {
/* No need for those on ARM */
if (flag  BOOTM_STATE_OS_BD_T || flag  BOOTM_STATE_OS_CMDLINE)
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot