From: Wolfgang Denk Date: Mon, 07 Jul 2008 17:57:32 +0200 Subject: [U-Boot-Users] variable type issues in LMB code In-Reply-To: Your message of "Mon, 07 Jul 2008 10:50:00 CDT." Message-ID: <20080707155732.B95AA24304@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Becky, in message 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.