Re: [PATCH 5/7] scripts: pblimage: explicitly set architecture to ARM

2019-09-13 Thread Roland Hieber
On Thu, Sep 12, 2019 at 12:29:03PM +0200, Ahmad Fatoum wrote:
> architecture is statically initialized to zero, which happens to be
> ARCH_ARM as it's the first enum element.
> Make this a bit clearer by explicitly assigning ARM_ARM to architecture.

Nit: s/ARM_ARM/ARCH_ARM/

> 
> Signed-off-by: Ahmad Fatoum 
> ---
>  scripts/pblimage.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/pblimage.c b/scripts/pblimage.c
> index 73c0169ac1c1..235af8aa11b1 100644
> --- a/scripts/pblimage.c
> +++ b/scripts/pblimage.c
> @@ -61,7 +61,7 @@ enum arch {
>   ARCH_POWERPC,
>  };
>  
> -enum arch architecture;
> +enum arch architecture = ARCH_ARM;
>  static char *rcwfile;
>  static char *pbifile;
>  static char *outfile;
> -- 
> 2.23.0
> 
> 
> ___
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Roland Hieber | r.hie...@pengutronix.de |
Pengutronix e.K.  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917- |

___
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


[PATCH 5/7] scripts: pblimage: explicitly set architecture to ARM

2019-09-12 Thread Ahmad Fatoum
architecture is statically initialized to zero, which happens to be
ARCH_ARM as it's the first enum element.
Make this a bit clearer by explicitly assigning ARM_ARM to architecture.

Signed-off-by: Ahmad Fatoum 
---
 scripts/pblimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/pblimage.c b/scripts/pblimage.c
index 73c0169ac1c1..235af8aa11b1 100644
--- a/scripts/pblimage.c
+++ b/scripts/pblimage.c
@@ -61,7 +61,7 @@ enum arch {
ARCH_POWERPC,
 };
 
-enum arch architecture;
+enum arch architecture = ARCH_ARM;
 static char *rcwfile;
 static char *pbifile;
 static char *outfile;
-- 
2.23.0


___
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox