[PATCH v10 1/3] test: fix test/dm/regmap.c

Tom Rini trini at konsulko.com
Tue Apr 20 16:21:52 CEST 2021

On Sun, Apr 11, 2021 at 11:21:56AM +0200, Heinrich Schuchardt wrote:

> regmap_read() only fills the first two bytes of val. The last two bytes are
> random data from the stack. This means the test will fail randomly.
> For low endian systems we could simply initialize val to 0 and get correct
> results. But tests should not depend on endianness. So let's use a pointer
> conversion instead.
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210420/e5131f9d/attachment.sig>

More information about the U-Boot mailing list