[U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode

2015-01-21 Thread Minghuan Lian
Fix this: warning: cast from pointer to integer of different size Signed-off-by: Minghuan Lian --- 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 ---

Re: [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode

2015-01-26 Thread York Sun
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 > --- > drivers/net/e1000.c | 31 +-- > 1 file changed, 17 insertions(+), 14 deletions(-) > > diff --git a/drivers/ne

Re: [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode

2015-01-26 Thread Lian Minghuan-B31939
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 poi

Re: [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode

2015-01-26 Thread York Sun
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 >