From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Mon, 22 Nov 2010 12:03:56 +0100 Subject: [U-Boot] [PATCH] e1000: fix compile warning In-Reply-To: <20101122100748.39E65B191@gemini.denx.de> References: <1290415725-12361-1-git-send-email-wd@denx.de> <4CEA3A7B.1070602@free.fr> <20101122100748.39E65B191@gemini.denx.de> Message-ID: <4CEA4E1C.2050607@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 22/11/2010 11:07, Wolfgang Denk a ?crit : > Dear Albert ARIBAUD, > > In message<4CEA3A7B.1070602@free.fr> you wrote: >> Le 22/11/2010 09:48, Wolfgang Denk a ?crit : >> >>> - txp->buffer_addr = cpu_to_le64(virt_to_bus(hw->pdev, packet)); >>> + txp->buffer_addr = cpu_to_le64(virt_to_bus(hw->pdev, nv_packet)); >> >> Wouldn't type-casting packet right here work? e.g.: >> >> txp->buffer_addr = cpu_to_le64(virt_to_bus(hw->pdev, ((void*)packet))); > > No, it doesn't. The virt_to_bus() macro already has such a > cast internally, but it doesn't work here. > > Best regards, > > Wolfgang Denk Hmm, then maybe it is not the type that causes the warning, but a qualifier such as 'const' ? Amicalement, -- Albert.