[PATCH] lib: fwts_uefi: cast to __SWORD_TYPE 32 bit builds
Keng-Yu Lin
kengyu at canonical.com
Fri Apr 26 02:06:42 UTC 2013
On Tue, Apr 23, 2013 at 4:34 PM, Colin King <colin.king at canonical.com> wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Fix 32 bit build failures:
>
> fwts_uefi.c: In function 'fwts_uefi_get_interface':
> fwts_uefi.c:130:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
> cc1: all warnings being treated as errors
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/lib/src/fwts_uefi.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/lib/src/fwts_uefi.c b/src/lib/src/fwts_uefi.c
> index 8149d23..d18c7b7 100644
> --- a/src/lib/src/fwts_uefi.c
> +++ b/src/lib/src/fwts_uefi.c
> @@ -60,9 +60,9 @@ typedef struct {
> #define UEFI_IFACE_EFIVARS (3) /* efivar fs */
>
> /* File system magic numbers */
> -#define PSTOREFS_MAGIC 0x6165676C
> -#define EFIVARFS_MAGIC 0xde5e81e4
> -#define SYS_FS_MAGIC 0x62656572
> +#define PSTOREFS_MAGIC ((__SWORD_TYPE)0x6165676C)
> +#define EFIVARFS_MAGIC ((__SWORD_TYPE)0xde5e81e4)
> +#define SYS_FS_MAGIC ((__SWORD_TYPE)0x62656572)
>
> /*
> * fwts_uefi_get_interface()
> --
> 1.8.1.2
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>
More information about the fwts-devel
mailing list