2003-06-23 18:49:39

by Adrian Bunk

[permalink] [raw]
Subject: [2.5 patch] postfix a constant in efi.h with ULL

The patch below postfixes a constant in efi.h with ULL, on 32 bit archs
this constant is too big for an int.

cu
Adrian

--- linux-2.5.73-not-full/fs/partitions/efi.h.old 2003-06-23 21:01:29.000000000 +0200
+++ linux-2.5.73-not-full/fs/partitions/efi.h 2003-06-23 21:01:42.000000000 +0200
@@ -40,7 +40,7 @@
#define EFI_PMBR_OSTYPE_EFI_GPT 0xEE

#define GPT_BLOCK_SIZE 512
-#define GPT_HEADER_SIGNATURE 0x5452415020494645L
+#define GPT_HEADER_SIGNATURE 0x5452415020494645ULL
#define GPT_HEADER_REVISION_V1 0x00010000
#define GPT_PRIMARY_PARTITION_TABLE_LBA 1


2003-06-23 21:13:15

by Matt Domsch

[permalink] [raw]
Subject: RE: [2.5 patch] postfix a constant in efi.h with ULL

> The patch below postfixes a constant in efi.h with ULL, on 32 bit archs
> this constant is too big for an int.
> -#define GPT_HEADER_SIGNATURE 0x5452415020494645L
> +#define GPT_HEADER_SIGNATURE 0x5452415020494645ULL

Sounds good. Please submit for 2.4.x also.

Thanks,
Matt

--
Matt Domsch
Sr. Software Engineer
Dell Linux Solutions http://www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com


2003-06-29 22:03:25

by Adrian Bunk

[permalink] [raw]
Subject: Re: [2.5 patch] postfix a constant in efi.h with ULL

On Mon, Jun 23, 2003 at 04:27:07PM -0500, [email protected] wrote:
> > The patch below postfixes a constant in efi.h with ULL, on 32 bit archs
> > this constant is too big for an int.
> > -#define GPT_HEADER_SIGNATURE 0x5452415020494645L
> > +#define GPT_HEADER_SIGNATURE 0x5452415020494645ULL
>
> Sounds good. Please submit for 2.4.x also.

Marcelo, this trivial patch is below. Please apply.

> Thanks,
> Matt

cu
Adrian

--- linux-2.5.73-not-full/fs/partitions/efi.h.old 2003-06-23 21:01:29.000000000 +0200
+++ linux-2.5.73-not-full/fs/partitions/efi.h 2003-06-23 21:01:42.000000000 +0200
@@ -40,7 +40,7 @@
#define EFI_PMBR_OSTYPE_EFI_GPT 0xEE

#define GPT_BLOCK_SIZE 512
-#define GPT_HEADER_SIGNATURE 0x5452415020494645L
+#define GPT_HEADER_SIGNATURE 0x5452415020494645ULL
#define GPT_HEADER_REVISION_V1 0x00010000
#define GPT_PRIMARY_PARTITION_TABLE_LBA 1