[U-Boot-Users] variable type issues in LMB code
Wolfgang Denk
wd at denx.de
Mon Jul 7 17:57:32 CEST 2008
Dear Becky,
in message <B63BCA99-7D7A-4CB6-9386-2371002D765E at freescale.com> you wrote:
>
> I see the following when I build for 8641HPCN on the latest tree:
>
> bootm.c: In function do_bootm_linux:
> bootm.c:208: warning: cast from pointer to integer of different size
> bootm.c:215: warning: cast from pointer to integer of different size
That's what I see, too.
> Wolfgang, please let me know if there are other errors you're seeing
> on some other build config that I haven't addressed here, and I'll
> look into those.
That's all, it seems.
> FYI, one possible source of confusion here for folks who are used to
> the linux version of the lmb: when the lmb became generic instead of
> ppc-only, the linux folks decided to always use u64 for types in the
> lmb code. This made some sense since ppc was the only platform using >
> the lmb that used a smaller data type, and the other platforms lacked >
> the concept of phys_addr_t. We've done "the right thing" in u-boot
> and used phys_size/addr_t since most of the platforms are 32-bit, and >
> using u64 unconditionally is a waste.
Thanks, and also for the explanation.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The universe is all a spin-off of the Big Bang.
More information about the U-Boot
mailing list