[U-Boot] [PATCH] powerpc/p1_p2_rdb_pc: Fix warnings for __iomem pointers

York Sun yorksun at freescale.com
Wed Dec 11 20:17:48 CET 2013


On 12/10/2013 01:22 AM, Claudiu Manoil wrote:
> Add the __iomem address space marker for the tsec pointers
> to struct tsec_mii_mng memory mapped register regions.
> This solves the sparse warnings for mixig normal pointers with
> __iomem pointers for tsec.
> 
> p1_p2_rdb_pc.c:373:24: warning: incorrect type in assignment (different
> address spaces)
> p1_p2_rdb_pc.c:373:24:    expected struct tsec_mii_mng [noderef]
> <asn:2>*regs
> p1_p2_rdb_pc.c:373:24:    got struct tsec_mii_mng *<noident>
> 
> Use TSEC_GET_MDIO_REGS_BASE() for the remaining mdio 'regs'
> initializations to remove the __iomem warnings and for consistency.
> 
> Signed-off-by: Claudiu Manoil <claudiu.manoil at freescale.com>
> ---

Applied to u-boot-mpc85xx/master. Thanks.

York




More information about the U-Boot mailing list