public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode
@ 2015-01-22  5:21 Minghuan Lian
  2015-01-22  5:21 ` [U-Boot] [PATCH 1/2] drivers/pci/pci_rom.c: " Minghuan Lian
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Minghuan Lian @ 2015-01-22  5:21 UTC (permalink / raw)
  To: u-boot

Fix this:
warning: cast from pointer to integer of different size

Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
---
 drivers/net/e1000.c | 31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)

diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
index 6531030..cd44222 100644
--- a/drivers/net/e1000.c
+++ b/drivers/net/e1000.c
@@ -4927,22 +4927,23 @@ void
 fill_rx(struct e1000_hw *hw)
 {
 	struct e1000_rx_desc *rd;
-	uint32_t flush_start, flush_end;
+	unsigned long flush_start, flush_end;
 
 	rx_last = rx_tail;
 	rd = rx_base + rx_tail;
 	rx_tail = (rx_tail + 1) % 8;
 	memset(rd, 0, 16);
-	rd->buffer_addr = cpu_to_le64((u32)packet);
+	rd->buffer_addr = cpu_to_le64((unsigned long)packet);
 
 	/*
 	 * Make sure there are no stale data in WB over this area, which
 	 * might get written into the memory while the e1000 also writes
 	 * into the same memory area.
 	 */
-	invalidate_dcache_range((u32)packet, (u32)packet + 4096);
+	invalidate_dcache_range((unsigned long)packet,
+				(unsigned long)packet + 4096);
 	/* Dump the DMA descriptor into RAM. */
-	flush_start = ((u32)rd) & ~(ARCH_DMA_MINALIGN - 1);
+	flush_start = ((unsigned long)rd) & ~(ARCH_DMA_MINALIGN - 1);
 	flush_end = flush_start + roundup(sizeof(*rd), ARCH_DMA_MINALIGN);
 	flush_dcache_range(flush_start, flush_end);
 
@@ -4963,7 +4964,7 @@ e1000_configure_tx(struct e1000_hw *hw)
 	unsigned long tipg, tarc;
 	uint32_t ipgr1, ipgr2;
 
-	E1000_WRITE_REG(hw, TDBAL, (u32) tx_base);
+	E1000_WRITE_REG(hw, TDBAL, (unsigned long)tx_base);
 	E1000_WRITE_REG(hw, TDBAH, 0);
 
 	E1000_WRITE_REG(hw, TDLEN, 128);
@@ -5107,7 +5108,7 @@ e1000_configure_rx(struct e1000_hw *hw)
 		E1000_WRITE_FLUSH(hw);
 	}
 	/* Setup the Base and Length of the Rx Descriptor Ring */
-	E1000_WRITE_REG(hw, RDBAL, (u32) rx_base);
+	E1000_WRITE_REG(hw, RDBAL, (unsigned long)rx_base);
 	E1000_WRITE_REG(hw, RDBAH, 0);
 
 	E1000_WRITE_REG(hw, RDLEN, 128);
@@ -5138,14 +5139,14 @@ e1000_poll(struct eth_device *nic)
 {
 	struct e1000_hw *hw = nic->priv;
 	struct e1000_rx_desc *rd;
-	uint32_t inval_start, inval_end;
+	unsigned long inval_start, inval_end;
 	uint32_t len;
 
 	/* return true if there's an ethernet packet ready to read */
 	rd = rx_base + rx_last;
 
 	/* Re-load the descriptor from RAM. */
-	inval_start = ((u32)rd) & ~(ARCH_DMA_MINALIGN - 1);
+	inval_start = ((unsigned long)rd) & ~(ARCH_DMA_MINALIGN - 1);
 	inval_end = inval_start + roundup(sizeof(*rd), ARCH_DMA_MINALIGN);
 	invalidate_dcache_range(inval_start, inval_end);
 
@@ -5154,8 +5155,9 @@ e1000_poll(struct eth_device *nic)
 	/*DEBUGOUT("recv: packet len=%d \n", rd->length); */
 	/* Packet received, make sure the data are re-loaded from RAM. */
 	len = le32_to_cpu(rd->length);
-	invalidate_dcache_range((u32)packet,
-				(u32)packet + roundup(len, ARCH_DMA_MINALIGN));
+	invalidate_dcache_range((unsigned long)packet,
+				(unsigned long)packet +
+				roundup(len, ARCH_DMA_MINALIGN));
 	NetReceive((uchar *)packet, len);
 	fill_rx(hw);
 	return 1;
@@ -5170,7 +5172,7 @@ static int e1000_transmit(struct eth_device *nic, void *txpacket, int length)
 	struct e1000_hw *hw = nic->priv;
 	struct e1000_tx_desc *txp;
 	int i = 0;
-	uint32_t flush_start, flush_end;
+	unsigned long flush_start, flush_end;
 
 	txp = tx_base + tx_tail;
 	tx_tail = (tx_tail + 1) % 8;
@@ -5180,10 +5182,11 @@ static int e1000_transmit(struct eth_device *nic, void *txpacket, int length)
 	txp->upper.data = 0;
 
 	/* Dump the packet into RAM so e1000 can pick them. */
-	flush_dcache_range((u32)nv_packet,
-			   (u32)nv_packet + roundup(length, ARCH_DMA_MINALIGN));
+	flush_dcache_range((unsigned long)nv_packet,
+			   (unsigned long)nv_packet +
+			   roundup(length, ARCH_DMA_MINALIGN));
 	/* Dump the descriptor into RAM as well. */
-	flush_start = ((u32)txp) & ~(ARCH_DMA_MINALIGN - 1);
+	flush_start = ((unsigned long)txp) & ~(ARCH_DMA_MINALIGN - 1);
 	flush_end = flush_start + roundup(sizeof(*txp), ARCH_DMA_MINALIGN);
 	flush_dcache_range(flush_start, flush_end);
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 1/2] drivers/pci/pci_rom.c: fix compile warning under 64bit mode
  2015-01-22  5:21 [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode Minghuan Lian
@ 2015-01-22  5:21 ` Minghuan Lian
  2015-02-02 18:59   ` [U-Boot] [U-Boot, " Tom Rini
  2015-01-26 15:25 ` [U-Boot] [PATCH] drivers/net/e1000.c: " York Sun
  2015-02-02 18:59 ` [U-Boot] " Tom Rini
  2 siblings, 1 reply; 7+ messages in thread
From: Minghuan Lian @ 2015-01-22  5:21 UTC (permalink / raw)
  To: u-boot

Fix this:
drivers/pci/pci_rom.c:95:15: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
rom_header = (struct pci_rom_header *)rom_address;

Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
---
 drivers/pci/pci_rom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c
index 7d25cc9..1ac3f3f 100644
--- a/drivers/pci/pci_rom.c
+++ b/drivers/pci/pci_rom.c
@@ -92,7 +92,7 @@ static int pci_rom_probe(pci_dev_t dev, uint class,
 			       rom_address | PCI_ROM_ADDRESS_ENABLE);
 #endif
 	debug("Option ROM address %x\n", rom_address);
-	rom_header = (struct pci_rom_header *)rom_address;
+	rom_header = (struct pci_rom_header *)(unsigned long)rom_address;
 
 	debug("PCI expansion ROM, signature %#04x, INIT size %#04x, data ptr %#04x\n",
 	      le32_to_cpu(rom_header->signature),
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode
  2015-01-22  5:21 [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode Minghuan Lian
  2015-01-22  5:21 ` [U-Boot] [PATCH 1/2] drivers/pci/pci_rom.c: " Minghuan Lian
@ 2015-01-26 15:25 ` York Sun
  2015-01-27  3:12   ` Lian Minghuan-B31939
  2015-02-02 18:59 ` [U-Boot] " Tom Rini
  2 siblings, 1 reply; 7+ messages in thread
From: York Sun @ 2015-01-26 15:25 UTC (permalink / raw)
  To: u-boot



On 01/21/2015 11:21 PM, Minghuan Lian wrote:
> Fix this:
> warning: cast from pointer to integer of different size
> 
> Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
> ---
>  drivers/net/e1000.c | 31 +++++++++++++++++--------------
>  1 file changed, 17 insertions(+), 14 deletions(-)
> 
> diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
> index 6531030..cd44222 100644
> --- a/drivers/net/e1000.c
> +++ b/drivers/net/e1000.c
> @@ -4927,22 +4927,23 @@ void
>  fill_rx(struct e1000_hw *hw)
>  {
>  	struct e1000_rx_desc *rd;
> -	uint32_t flush_start, flush_end;
> +	unsigned long flush_start, flush_end;
>  
>  	rx_last = rx_tail;
>  	rd = rx_base + rx_tail;
>  	rx_tail = (rx_tail + 1) % 8;
>  	memset(rd, 0, 16);
> -	rd->buffer_addr = cpu_to_le64((u32)packet);
> +	rd->buffer_addr = cpu_to_le64((unsigned long)packet);
>  
>  	/*
>  	 * Make sure there are no stale data in WB over this area, which
>  	 * might get written into the memory while the e1000 also writes
>  	 * into the same memory area.
>  	 */
> -	invalidate_dcache_range((u32)packet, (u32)packet + 4096);
> +	invalidate_dcache_range((unsigned long)packet,
> +				(unsigned long)packet + 4096);
>  	/* Dump the DMA descriptor into RAM. */
> -	flush_start = ((u32)rd) & ~(ARCH_DMA_MINALIGN - 1);
> +	flush_start = ((unsigned long)rd) & ~(ARCH_DMA_MINALIGN - 1);
>  	flush_end = flush_start + roundup(sizeof(*rd), ARCH_DMA_MINALIGN);
>  	flush_dcache_range(flush_start, flush_end);
>  
> @@ -4963,7 +4964,7 @@ e1000_configure_tx(struct e1000_hw *hw)
>  	unsigned long tipg, tarc;
>  	uint32_t ipgr1, ipgr2;
>  
> -	E1000_WRITE_REG(hw, TDBAL, (u32) tx_base);
> +	E1000_WRITE_REG(hw, TDBAL, (unsigned long)tx_base);
>  	E1000_WRITE_REG(hw, TDBAH, 0);
>  
>  	E1000_WRITE_REG(hw, TDLEN, 128);
> @@ -5107,7 +5108,7 @@ e1000_configure_rx(struct e1000_hw *hw)
>  		E1000_WRITE_FLUSH(hw);
>  	}
>  	/* Setup the Base and Length of the Rx Descriptor Ring */
> -	E1000_WRITE_REG(hw, RDBAL, (u32) rx_base);
> +	E1000_WRITE_REG(hw, RDBAL, (unsigned long)rx_base);
>  	E1000_WRITE_REG(hw, RDBAH, 0);
>  
>  	E1000_WRITE_REG(hw, RDLEN, 128);
> @@ -5138,14 +5139,14 @@ e1000_poll(struct eth_device *nic)
>  {
>  	struct e1000_hw *hw = nic->priv;
>  	struct e1000_rx_desc *rd;
> -	uint32_t inval_start, inval_end;
> +	unsigned long inval_start, inval_end;
>  	uint32_t len;
>  
>  	/* return true if there's an ethernet packet ready to read */
>  	rd = rx_base + rx_last;
>  
>  	/* Re-load the descriptor from RAM. */
> -	inval_start = ((u32)rd) & ~(ARCH_DMA_MINALIGN - 1);
> +	inval_start = ((unsigned long)rd) & ~(ARCH_DMA_MINALIGN - 1);
>  	inval_end = inval_start + roundup(sizeof(*rd), ARCH_DMA_MINALIGN);
>  	invalidate_dcache_range(inval_start, inval_end);
>  
> @@ -5154,8 +5155,9 @@ e1000_poll(struct eth_device *nic)
>  	/*DEBUGOUT("recv: packet len=%d \n", rd->length); */
>  	/* Packet received, make sure the data are re-loaded from RAM. */
>  	len = le32_to_cpu(rd->length);
> -	invalidate_dcache_range((u32)packet,
> -				(u32)packet + roundup(len, ARCH_DMA_MINALIGN));
> +	invalidate_dcache_range((unsigned long)packet,
> +				(unsigned long)packet +
> +				roundup(len, ARCH_DMA_MINALIGN));
>  	NetReceive((uchar *)packet, len);
>  	fill_rx(hw);
>  	return 1;
> @@ -5170,7 +5172,7 @@ static int e1000_transmit(struct eth_device *nic, void *txpacket, int length)
>  	struct e1000_hw *hw = nic->priv;
>  	struct e1000_tx_desc *txp;
>  	int i = 0;
> -	uint32_t flush_start, flush_end;
> +	unsigned long flush_start, flush_end;
>  
>  	txp = tx_base + tx_tail;
>  	tx_tail = (tx_tail + 1) % 8;
> @@ -5180,10 +5182,11 @@ static int e1000_transmit(struct eth_device *nic, void *txpacket, int length)
>  	txp->upper.data = 0;
>  
>  	/* Dump the packet into RAM so e1000 can pick them. */
> -	flush_dcache_range((u32)nv_packet,
> -			   (u32)nv_packet + roundup(length, ARCH_DMA_MINALIGN));
> +	flush_dcache_range((unsigned long)nv_packet,
> +			   (unsigned long)nv_packet +
> +			   roundup(length, ARCH_DMA_MINALIGN));
>  	/* Dump the descriptor into RAM as well. */
> -	flush_start = ((u32)txp) & ~(ARCH_DMA_MINALIGN - 1);
> +	flush_start = ((unsigned long)txp) & ~(ARCH_DMA_MINALIGN - 1);
>  	flush_end = flush_start + roundup(sizeof(*txp), ARCH_DMA_MINALIGN);
>  	flush_dcache_range(flush_start, flush_end);
>  
> 
Please consider phys_addr_t and phys_size_t.

York

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode
  2015-01-26 15:25 ` [U-Boot] [PATCH] drivers/net/e1000.c: " York Sun
@ 2015-01-27  3:12   ` Lian Minghuan-B31939
  2015-01-27  3:16     ` York Sun
  0 siblings, 1 reply; 7+ messages in thread
From: Lian Minghuan-B31939 @ 2015-01-27  3:12 UTC (permalink / raw)
  To: u-boot

Hi York,

We can not use phys_addr_t and phys_size_t here.

If  CONFIG_PHYS_64BIT is defined and uboot is compiled as 32bit like 
PowerPC64 arch,
phys_addr_t and phys_size_t will be defined as 64bit, but the pointer is 
still 32bit size.
we could not convert  directly between phys_addr_t and a pointer without 
compile warning.
To avoid warning,  virt_to_phys and phys_to_virt are needed.
However, some architectures do not implemented them.

Thanks,
Minghuan


On 2015?01?26? 23:25, York Sun wrote:
>
> On 01/21/2015 11:21 PM, Minghuan Lian wrote:
>> Fix this:
>> warning: cast from pointer to integer of different size
>>
>> Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
>> ---
>>   drivers/net/e1000.c | 31 +++++++++++++++++--------------
>>   1 file changed, 17 insertions(+), 14 deletions(-)
>>
>> diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
>> index 6531030..cd44222 100644
>> --- a/drivers/net/e1000.c
>> +++ b/drivers/net/e1000.c
>> @@ -4927,22 +4927,23 @@ void
>>   fill_rx(struct e1000_hw *hw)
>>   {
>>   	struct e1000_rx_desc *rd;
>> -	uint32_t flush_start, flush_end;
>> +	unsigned long flush_start, flush_end;
>>   
>>   	rx_last = rx_tail;
>>   	rd = rx_base + rx_tail;
>>   	rx_tail = (rx_tail + 1) % 8;
>>   	memset(rd, 0, 16);
>> -	rd->buffer_addr = cpu_to_le64((u32)packet);
>> +	rd->buffer_addr = cpu_to_le64((unsigned long)packet);
>>   
>>   	/*
>>   	 * Make sure there are no stale data in WB over this area, which
>>   	 * might get written into the memory while the e1000 also writes
>>   	 * into the same memory area.
>>   	 */
>> -	invalidate_dcache_range((u32)packet, (u32)packet + 4096);
>> +	invalidate_dcache_range((unsigned long)packet,
>> +				(unsigned long)packet + 4096);
>>   	/* Dump the DMA descriptor into RAM. */
>> -	flush_start = ((u32)rd) & ~(ARCH_DMA_MINALIGN - 1);
>> +	flush_start = ((unsigned long)rd) & ~(ARCH_DMA_MINALIGN - 1);
>>   	flush_end = flush_start + roundup(sizeof(*rd), ARCH_DMA_MINALIGN);
>>   	flush_dcache_range(flush_start, flush_end);
>>   
>> @@ -4963,7 +4964,7 @@ e1000_configure_tx(struct e1000_hw *hw)
>>   	unsigned long tipg, tarc;
>>   	uint32_t ipgr1, ipgr2;
>>   
>> -	E1000_WRITE_REG(hw, TDBAL, (u32) tx_base);
>> +	E1000_WRITE_REG(hw, TDBAL, (unsigned long)tx_base);
>>   	E1000_WRITE_REG(hw, TDBAH, 0);
>>   
>>   	E1000_WRITE_REG(hw, TDLEN, 128);
>> @@ -5107,7 +5108,7 @@ e1000_configure_rx(struct e1000_hw *hw)
>>   		E1000_WRITE_FLUSH(hw);
>>   	}
>>   	/* Setup the Base and Length of the Rx Descriptor Ring */
>> -	E1000_WRITE_REG(hw, RDBAL, (u32) rx_base);
>> +	E1000_WRITE_REG(hw, RDBAL, (unsigned long)rx_base);
>>   	E1000_WRITE_REG(hw, RDBAH, 0);
>>   
>>   	E1000_WRITE_REG(hw, RDLEN, 128);
>> @@ -5138,14 +5139,14 @@ e1000_poll(struct eth_device *nic)
>>   {
>>   	struct e1000_hw *hw = nic->priv;
>>   	struct e1000_rx_desc *rd;
>> -	uint32_t inval_start, inval_end;
>> +	unsigned long inval_start, inval_end;
>>   	uint32_t len;
>>   
>>   	/* return true if there's an ethernet packet ready to read */
>>   	rd = rx_base + rx_last;
>>   
>>   	/* Re-load the descriptor from RAM. */
>> -	inval_start = ((u32)rd) & ~(ARCH_DMA_MINALIGN - 1);
>> +	inval_start = ((unsigned long)rd) & ~(ARCH_DMA_MINALIGN - 1);
>>   	inval_end = inval_start + roundup(sizeof(*rd), ARCH_DMA_MINALIGN);
>>   	invalidate_dcache_range(inval_start, inval_end);
>>   
>> @@ -5154,8 +5155,9 @@ e1000_poll(struct eth_device *nic)
>>   	/*DEBUGOUT("recv: packet len=%d \n", rd->length); */
>>   	/* Packet received, make sure the data are re-loaded from RAM. */
>>   	len = le32_to_cpu(rd->length);
>> -	invalidate_dcache_range((u32)packet,
>> -				(u32)packet + roundup(len, ARCH_DMA_MINALIGN));
>> +	invalidate_dcache_range((unsigned long)packet,
>> +				(unsigned long)packet +
>> +				roundup(len, ARCH_DMA_MINALIGN));
>>   	NetReceive((uchar *)packet, len);
>>   	fill_rx(hw);
>>   	return 1;
>> @@ -5170,7 +5172,7 @@ static int e1000_transmit(struct eth_device *nic, void *txpacket, int length)
>>   	struct e1000_hw *hw = nic->priv;
>>   	struct e1000_tx_desc *txp;
>>   	int i = 0;
>> -	uint32_t flush_start, flush_end;
>> +	unsigned long flush_start, flush_end;
>>   
>>   	txp = tx_base + tx_tail;
>>   	tx_tail = (tx_tail + 1) % 8;
>> @@ -5180,10 +5182,11 @@ static int e1000_transmit(struct eth_device *nic, void *txpacket, int length)
>>   	txp->upper.data = 0;
>>   
>>   	/* Dump the packet into RAM so e1000 can pick them. */
>> -	flush_dcache_range((u32)nv_packet,
>> -			   (u32)nv_packet + roundup(length, ARCH_DMA_MINALIGN));
>> +	flush_dcache_range((unsigned long)nv_packet,
>> +			   (unsigned long)nv_packet +
>> +			   roundup(length, ARCH_DMA_MINALIGN));
>>   	/* Dump the descriptor into RAM as well. */
>> -	flush_start = ((u32)txp) & ~(ARCH_DMA_MINALIGN - 1);
>> +	flush_start = ((unsigned long)txp) & ~(ARCH_DMA_MINALIGN - 1);
>>   	flush_end = flush_start + roundup(sizeof(*txp), ARCH_DMA_MINALIGN);
>>   	flush_dcache_range(flush_start, flush_end);
>>   
>>
> Please consider phys_addr_t and phys_size_t.
>
> York

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode
  2015-01-27  3:12   ` Lian Minghuan-B31939
@ 2015-01-27  3:16     ` York Sun
  0 siblings, 0 replies; 7+ messages in thread
From: York Sun @ 2015-01-27  3:16 UTC (permalink / raw)
  To: u-boot

Minghuan,

On 01/26/2015 09:12 PM, Lian Minghuan-B31939 wrote:
> Hi York,
> 
> We can not use phys_addr_t and phys_size_t here.
> 
> If  CONFIG_PHYS_64BIT is defined and uboot is compiled as 32bit like 
> PowerPC64 arch,
> phys_addr_t and phys_size_t will be defined as 64bit, but the pointer is 
> still 32bit size.

I take unsigned long is a good alternative.

York

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] drivers/net/e1000.c: fix compile warning under 64bit mode
  2015-01-22  5:21 [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode Minghuan Lian
  2015-01-22  5:21 ` [U-Boot] [PATCH 1/2] drivers/pci/pci_rom.c: " Minghuan Lian
  2015-01-26 15:25 ` [U-Boot] [PATCH] drivers/net/e1000.c: " York Sun
@ 2015-02-02 18:59 ` Tom Rini
  2 siblings, 0 replies; 7+ messages in thread
From: Tom Rini @ 2015-02-02 18:59 UTC (permalink / raw)
  To: u-boot

On Thu, Jan 22, 2015 at 01:21:54PM +0800, Minghuan Lian wrote:

> Fix this:
> warning: cast from pointer to integer of different size
> 
> Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150202/21c6394c/attachment.sig>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [U-Boot, 1/2] drivers/pci/pci_rom.c: fix compile warning under 64bit mode
  2015-01-22  5:21 ` [U-Boot] [PATCH 1/2] drivers/pci/pci_rom.c: " Minghuan Lian
@ 2015-02-02 18:59   ` Tom Rini
  0 siblings, 0 replies; 7+ messages in thread
From: Tom Rini @ 2015-02-02 18:59 UTC (permalink / raw)
  To: u-boot

On Thu, Jan 22, 2015 at 01:21:55PM +0800, Minghuan Lian wrote:

> Fix this:
> drivers/pci/pci_rom.c:95:15: warning: cast to pointer from
> integer of different size [-Wint-to-pointer-cast]
> rom_header = (struct pci_rom_header *)rom_address;
> 
> Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150202/1ae16051/attachment.sig>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-02-02 18:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-22  5:21 [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode Minghuan Lian
2015-01-22  5:21 ` [U-Boot] [PATCH 1/2] drivers/pci/pci_rom.c: " Minghuan Lian
2015-02-02 18:59   ` [U-Boot] [U-Boot, " Tom Rini
2015-01-26 15:25 ` [U-Boot] [PATCH] drivers/net/e1000.c: " York Sun
2015-01-27  3:12   ` Lian Minghuan-B31939
2015-01-27  3:16     ` York Sun
2015-02-02 18:59 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox