From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Sun, 28 Nov 2010 20:48:28 +0300 Subject: [U-Boot] [PATCH 03/24] e1000: fix compile warning In-Reply-To: <1290700844-31427-4-git-send-email-wd@denx.de> References: <1290373420-3053-1-git-send-email-wd@denx.de> <1290700844-31427-4-git-send-email-wd@denx.de> Message-ID: <4CF295EC.5030701@mvista.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello. On 25-11-2010 19:00, Wolfgang Denk wrote: > Get rid of compiler warning: > e1000.c: In function 'e1000_transmit': > e1000.c:5028: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type > Signed-off-by: Wolfgang Denk [...] > diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c > index 60b04c2..5f390bd 100644 > --- a/drivers/net/e1000.c > +++ b/drivers/net/e1000.c > @@ -5018,6 +5018,7 @@ TRANSMIT - Transmit a frame > static int > e1000_transmit(struct eth_device *nic, volatile void *packet, int length) > { > + void * nv_packet = (void *)packet; I suspect checkpatch.pl would complain about the space following *... WBR, Sergei