diff options
author | Gabe Black <gabeblack@google.com> | 2013-01-15 16:22:04 -0800 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-03-12 23:56:16 +0100 |
commit | 2c2c4fae2221f87aeff88162fa3216f3a91af793 (patch) | |
tree | bcbca2817987c5dd0bb73b2e90e43cff722debd0 /Makefile.inc | |
parent | ee5c111755ac4acc6dfb6e10a4e271211e149a39 (diff) |
libpayload: In the USBMSC read_capacity function, make buf an array of u32.
That way when it's treated as a u32 when its value is extracted for numblocks
and blocksize below, it doesn't make the compiler unhappy, and it ensures that
the buffer will be properly aligned on architectures where that sort of thing
matters.
Built and saw warnings about type punning go away.
Change-Id: I254e0b5e70847112d660675b7df0ac9cb52e4051
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: http://review.coreboot.org/2653
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'Makefile.inc')
0 files changed, 0 insertions, 0 deletions