From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Wed, 11 Dec 2013 11:17:48 -0800 Subject: [U-Boot] [PATCH] powerpc/p1_p2_rdb_pc: Fix warnings for __iomem pointers In-Reply-To: <1386667342-24464-1-git-send-email-claudiu.manoil@freescale.com> References: <1386667342-24464-1-git-send-email-claudiu.manoil@freescale.com> Message-ID: <52A8BA5C.1000202@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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] > *regs > p1_p2_rdb_pc.c:373:24: got struct tsec_mii_mng * > > 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 > --- Applied to u-boot-mpc85xx/master. Thanks. York