From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 24 Aug 2016 06:53:15 -0600 Subject: [U-Boot] [PATCH 2/3] x86: efi: payload: Correct BITS_PER_LONG to 32 In-Reply-To: <1472031083-20720-2-git-send-email-bmeng.cn@gmail.com> References: <1472031083-20720-1-git-send-email-bmeng.cn@gmail.com> <1472031083-20720-2-git-send-email-bmeng.cn@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 24 August 2016 at 03:31, Bin Meng 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 > --- > > arch/x86/include/asm/types.h | 4 ---- > lib/efi/efi_stub.c | 1 - > 2 files changed, 5 deletions(-) Reviewed-by: Simon Glass