From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 30 Jan 2009 11:22:04 +0100 Subject: [U-Boot] [PATCH] MIPS: Fix compile warning in au1x00_eth.c In-Reply-To: <4982496B.80607@necel.com> References: <1233121463-25530-1-git-send-email-sr@denx.de> <200901281737.36571.sr@denx.de> <4982496B.80607@necel.com> Message-ID: <200901301122.05028.sr@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 On Friday 30 January 2009, Shinya Kuribayashi wrote: > @@ -249,7 +249,7 @@ static int au1x00_init(struct eth_device* dev, bd_t * > bd){ for(i=0;i fifo_tx[i].len = 0; > fifo_tx[i].addr = virt_to_phys(&txbuf[0]); > - fifo_rx[i].addr = (virt_to_phys(NetRxPackets[i]))|RX_DMA_ENABLE; > + fifo_rx[i].addr = (virt_to_phys((void *)(unsigned > long)NetRxPackets[i]))|RX_DMA_ENABLE; } > > /* Put mac addr in little endian */ > > > Well, what will we do? Are there any othrer desirable fixes? Hmmm, strange that such a double cast is really needed. BTW: I'm beginning to wonder if we really need the "volatile" in the net related parameters. Perhaps this should be reviewed again. PS: I'm leaving for a short vacation in a few hours. I'll be back on Thursday next week. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================