[U-Boot] [U-Boot, Upstream] cmd_sf: include header file common.h before div64.h

Tom Rini trini at ti.com
Mon Apr 8 18:28:13 CEST 2013


On Sun, Apr 07, 2013 at 10:13:32PM -0000, Mingkai Hu wrote:

> The header file div64.h includes <asm/types.h> which defines
> the phys_addr_t according to the macro CONFIG_PHYS_64BIT, while
> the macro CONFIG_PHYS_64BIT is included in common.h which comes
> after div64.h, so in order to get consistent type definition for
> phys_addr_t, common.h should be included before div64.h, Or else,
> the parameters of phys_addr_t type will be passed wrongly when
> CONFIG_PHYS_64BIT is defined.
> 
> Signed-off-by: Mingkai Hu <Mingkai.Hu at freescale.com>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20130408/9472fbf6/attachment.pgp>


More information about the U-Boot mailing list