mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ls: align file size correctly on non-ARM 64-bit platforms
@ 2020-09-14 17:17 Ahmad Fatoum
  2020-09-15  7:22 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2020-09-14 17:17 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov, Ahmad Fatoum

CONFIG_CPU_64 is ARM-specific. Use the generic CONFIG_64BIT instead
for aligning the file size.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 commands/ls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/ls.c b/commands/ls.c
index 59163f678d51..bedf2e1c4288 100644
--- a/commands/ls.c
+++ b/commands/ls.c
@@ -15,7 +15,7 @@
 /*
  * SIZELEN = strlen(itoa(MAX_LFS_FILESIZE)) + 1;
  */
-#ifdef CONFIG_CPU_64
+#ifdef CONFIG_64BIT
 #define SIZELEN		20
 #else
 #define SIZELEN		14
-- 
2.28.0


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ls: align file size correctly on non-ARM 64-bit platforms
  2020-09-14 17:17 [PATCH] ls: align file size correctly on non-ARM 64-bit platforms Ahmad Fatoum
@ 2020-09-15  7:22 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-09-15  7:22 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: Andrey Smirnov, barebox

On Mon, Sep 14, 2020 at 07:17:08PM +0200, Ahmad Fatoum wrote:
> CONFIG_CPU_64 is ARM-specific. Use the generic CONFIG_64BIT instead
> for aligning the file size.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
> ---
>  commands/ls.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-15  7:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-14 17:17 [PATCH] ls: align file size correctly on non-ARM 64-bit platforms Ahmad Fatoum
2020-09-15  7:22 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox