[PATCH] uefi: uefirtvariable: fix build failure on 32 bit systems
Keng-Yu Lin
kengyu at canonical.com
Thu Dec 20 14:23:23 UTC 2012
On Thu, Dec 20, 2012 at 6:36 PM, Colin King <colin.king at canonical.com> wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Fix build failure on 32 bit systems cause by not using ULL.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/uefi/uefirtvariable/uefirtvariable.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/uefi/uefirtvariable/uefirtvariable.c b/src/uefi/uefirtvariable/uefirtvariable.c
> index 1599c5b..2a9db0b 100644
> --- a/src/uefi/uefirtvariable/uefirtvariable.c
> +++ b/src/uefi/uefirtvariable/uefirtvariable.c
> @@ -41,7 +41,7 @@
> }
>
> #define EFI_SUCCESS 0
> -#define EFI_NOT_FOUND (14 | (1UL << 63))
> +#define EFI_NOT_FOUND (14 | (1ULL << 63))
>
from kernel's efi.h
#define EFI_NOT_FOUND (14 | (1UL << (BITS_PER_LONG-1)))
shall we just mimic the kernel's definition like:
#define BITS_PER_LONG sizeof(long) * 8
#define EFI_NOT_FOUND (14 | (1UL << (BITS_PER_LONG-1)))
if it is better this way?
> #define MAX_DATA_LENGTH 1024
>
> --
> 1.8.0
>
>
> --
> fwts-devel mailing list
> fwts-devel at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/fwts-devel
More information about the fwts-devel
mailing list