From: Tom Rini Date: Fri, 7 Jun 2013 14:19:09 -0400 Subject: [U-Boot] fdt: remove unaligned access in fdt_fixup_ethernet() In-Reply-To: <1369713679-3256-1-git-send-email-swarren@wwwdotorg.org> References: <1369713679-3256-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <20130607181909.GF26693@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 Mon, May 27, 2013 at 06:01:19PM -0000, Stephen Warren wrote: > Some ARM compilers may emit code that makes unaligned accesses when > faced with constructs such as: > > char mac[16] = "ethaddr"; > > Replace this with a strcpy() call instead to avoid this. strcpy() is > used here, rather than replacing all usage of the mac variable with the > string itself, since the loop itself sprintf()s to the variable each > iteration, so strcpy() is doing basically the same thing. > > Reported-by: Florian Meier > Signed-off-by: Stephen Warren Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: