
Hi,
On 26 August 2015 at 06:17, Bin Meng bmeng.cn@gmail.com wrote:
commit 6497e37 "net: e1000: Support 64-bit physical address" causes compiler warnings on 32-bit U-Boot build below.
drivers/net/e1000.c: In function 'e1000_configure_tx': drivers/net/e1000.c:4982:2: warning: right shift count >= width of type [enabled by default] drivers/net/e1000.c: In function 'e1000_configure_rx': drivers/net/e1000.c:5126:2: warning: right shift count >= width of type [enabled by default]
This commit fixes the build warnings.
Signed-off-by: Bin Meng bmeng.cn@gmail.com
Changes in v2:
- Use lower_32_bits() and upper_32_bits()
drivers/net/e1000.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
Acked-by: Simon Glass sjg@chromium.org
I'd like to pick this up for u-boot-x86 as it fixes warnings in most x86 boards.
Regards, Simon