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

Bin Meng bmeng.cn at gmail.com
Thu Aug 25 04:56:06 CEST 2016


On Wed, Aug 24, 2016 at 8:53 PM, Simon Glass <sjg at chromium.org> wrote:
> 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>

Sorry this patch needs rework as 64-bit payload does not boot. I will
work on a v2.

Regards,
Bin


More information about the U-Boot mailing list