From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 20 Apr 2021 10:21:52 -0400 Subject: [PATCH v10 1/3] test: fix test/dm/regmap.c In-Reply-To: <20210411092158.5244-2-xypron.glpk@gmx.de> References: <20210411092158.5244-1-xypron.glpk@gmx.de> <20210411092158.5244-2-xypron.glpk@gmx.de> Message-ID: <20210420142152.GP1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: