[U-Boot] [PATCH 2/3] x86: efi: payload: Correct BITS_PER_LONG to 32

Simon Glass sjg at chromium.org
Wed Aug 24 14:53:15 CEST 2016


On 24 August 2016 at 03:31, Bin Meng <bmeng.cn at gmail.com> wrote:
> U-Boot itself as EFI payload is still running in 32-bit mode.
> So BITS_PER_LONG should still be 32. This fixes the warnings
> when building EFI 64-bit payload.
>
> include/asm-generic/bitops/__fls.h:17:2:
>   warning: left shift count >= width of type
>         if (!(word & (~0ul << 32))) {
>                         ^
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  arch/x86/include/asm/types.h | 4 ----
>  lib/efi/efi_stub.c           | 1 -
>  2 files changed, 5 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list