[U-Boot] [PATCH v2 02/10] net: e1000: Fix build warnings for 32-bit
Simon Glass
sjg at chromium.org
Wed Aug 26 15:35:52 CEST 2015
Hi,
On 26 August 2015 at 06:17, Bin Meng <bmeng.cn at 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 at 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 at chromium.org>
I'd like to pick this up for u-boot-x86 as it fixes warnings in most x86 boards.
Regards,
Simon
More information about the U-Boot
mailing list