[U-Boot] [PATCH 01/11] powerpc: fix io.h build warning with CONFIG_PHYS_64BIT

Wolfgang Denk wd at denx.de
Tue Dec 16 23:46:18 CET 2008


In message <20081216155539.6345F832E8A1 at gemini.denx.de> I wrote:
> 
> In message <1228367087-27268-2-git-send-email-beckyb at kernel.crashing.org> you wrote:
> > Casting a pointer to a phys_addr_t when it's an unsigned long long
> > on a 32-bit system without first casting to a non-pointer type
> > generates a compiler warning. Fix this.
> > 
> > Signed-off-by: Becky Bruce <beckyb at kernel.crashing.org>
> > ---
> >  include/asm-ppc/io.h |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> Applied, thanks.

Unfortunately this leaves problems on some MIPS based systems:

...
au1x00_eth.c: In function 'au1x00_send':
au1x00_eth.c:158: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type
au1x00_eth.c: In function 'au1x00_recv':
au1x00_eth.c:211: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type
au1x00_eth.c: In function 'au1x00_init':
au1x00_eth.c:252: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type

(for dbau1000, dbau1100, dbau1500, dbau1550, dbau1550_el and gth2)

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
Celestial navigation is based on the premise that the  Earth  is  the
center  of  the  universe.  The  premise is wrong, but the navigation
works. An incorrect model can be a useful tool.   - Kelvin Throop III


More information about the U-Boot mailing list