[PATCH][RESEND] uefi: uefirtvariable: fix build failure on 32 bit systems

Colin Ian King colin.king at canonical.com
Fri Jan 4 19:01:09 UTC 2013


On 04/01/13 12:24, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Fix build failure on 32 bit systems. Thanks to Keng-Yu for suggesting
> a far better solution.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   src/lib/include/fwts_uefi.h | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/lib/include/fwts_uefi.h b/src/lib/include/fwts_uefi.h
> index 64e72c1..e25da50 100644
> --- a/src/lib/include/fwts_uefi.h
> +++ b/src/lib/include/fwts_uefi.h
> @@ -46,7 +46,8 @@ enum {
>   	FWTS_UEFI_TIME_IN_DAYLIGHT = 		0x02
>   };
>
> -#define HIGH_BIT_SET	(1UL << 63)
> +#define BITS_PER_UINT64          	(sizeof(long) * 8)
> +#define HIGH_BIT_SET			(1UL << (BITS_PER_UINT64-1))
>
>   #define EFI_SUCCESS			0
>   #define EFI_LOAD_ERROR			(1 | HIGH_BIT_SET)
>
Ah, it seems I missed Keng-Yu's patch that landed in fwts. Ignore this.





More information about the fwts-devel mailing list