Warnings on arm64 build
Hello aarch64 experts,
Since commit 3865ceb (vexpress/armv7: Fix incorrect ethernet controller), I have many warning messages when I compile vexpress board.
smc91111.c: In function ?poll4int?:
smc91111.h:252:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
#define SMC_inw(a,r) (*((volatile word *)((a)->iobase+(r))))
^
smc91111.c:242:18: note: in expansion of macro ?SMC_inw?
word old_bank = SMC_inw (dev, BSR_REG);
^
smc91111.h:261:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
#define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r))) = d)
^smc91111.h:747:33: note: in expansion of macro ?SMC_outw?
#define SMC_SELECT_BANK(a,x) { SMC_outw((a), (x), BANK_SELECT ); }
Best Regards
Masahiro Yamada
Hi Mashiro,
Quoted 26 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Masahiro Yamada
Sent: Thursday, January 23, 2014 12:38 PM
To: u-boot at lists.denx.de
Subject: [U-Boot] Warnings on arm64 buildHello aarch64 experts,
Since commit 3865ceb (vexpress/armv7: Fix incorrect ethernet controller), I have many warning messages when I compile vexpress board.
smc91111.c: In function 'poll4int':
smc91111.h:252:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #defineSMC_inw(a,r)(*((volatile word *)((a)->iobase+(r))))^ smc91111.c:242:18: note: in expansion of macro 'SMC_inw' word old_bank = SMC_inw (dev, BSR_REG); ^ smc91111.h:261:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r))) = d) ^
Quoted 4 lines
smc91111.h:747:33: note: in expansion of macro '
SMC_outw'
#defineSMC_SELECT_BANK(a,x){SMC_outw((a), (x), BANK_SELECT ); }
These are issues with the SMSC91c111 driver highlighted when trying to compile for ARM64. I can try to fix the same, but will need some time to do the same, plus I don't have additional platforms to test the same.
Regards,
Bhupesh