[PATCH] mvebuimg: replace errant sizeof(4)

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 17 03:49:14 PST 2025


On Tue, 11 Nov 2025 14:32:45 +0100, Ahmad Fatoum wrote:
> trailer is a 4 byte array and sizeof(4) == sizeof(int) for most
> contemporary architectures, so this went unnoticed.
> 
> Remove this hidden assumption by using sizeof(trailer).
> 
> No functional change for probably all architectures barebox was so far
> compiled on..
> 
> [...]

Applied, thanks!

[1/1] mvebuimg: replace errant sizeof(4)
      https://git.pengutronix.de/cgit/barebox/commit/?id=dbee8b66baad (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list