diff mbox

[U-Boot,1/2] part_efi: Fix compile errors

Message ID 1321283948-6927-2-git-send-email-premi@ti.com
State Superseded
Headers show

Commit Message

Sanjeev Premi Nov. 14, 2011, 3:19 p.m. UTC
Fix errors noticed after enabling CONFIG_EFI_PARTITION
for the OMAP3 EVM board:

part_efi.c: In function 'print_part_efi':
part_efi.c:133:5: warning: passing argument 3 of 'is_gpt_valid'
 from incompatible pointer type
part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
ument is of type 'struct gpt_header **'
part_efi.c: In function 'get_partition_info_efi':
part_efi.c:173:4: warning: passing argument 3 of 'is_gpt_valid
' from incompatible pointer type
part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
ument is of type 'struct gpt_header **'
part_efi.c: In function 'alloc_read_gpt_entries':

Signed-off-by: Sanjeev Premi <premi@ti.com>
---
 disk/part_efi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Anton staaf Nov. 14, 2011, 9:23 p.m. UTC | #1
On Mon, Nov 14, 2011 at 7:19 AM, Sanjeev Premi <premi@ti.com> wrote:
> Fix errors noticed after enabling CONFIG_EFI_PARTITION
> for the OMAP3 EVM board:

There is already a patch for this waiting to be committed.

Thanks,
    Anton

> part_efi.c: In function 'print_part_efi':
> part_efi.c:133:5: warning: passing argument 3 of 'is_gpt_valid'
>  from incompatible pointer type
> part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
> ument is of type 'struct gpt_header **'
> part_efi.c: In function 'get_partition_info_efi':
> part_efi.c:173:4: warning: passing argument 3 of 'is_gpt_valid
> ' from incompatible pointer type
> part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
> ument is of type 'struct gpt_header **'
> part_efi.c: In function 'alloc_read_gpt_entries':
>
> Signed-off-by: Sanjeev Premi <premi@ti.com>
> ---
>  disk/part_efi.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/disk/part_efi.c b/disk/part_efi.c
> index e7f2714..ddf80a7 100644
> --- a/disk/part_efi.c
> +++ b/disk/part_efi.c
> @@ -130,7 +130,7 @@ void print_part_efi(block_dev_desc_t * dev_desc)
>        }
>        /* This function validates AND fills in the GPT header and PTE */
>        if (is_gpt_valid(dev_desc, GPT_PRIMARY_PARTITION_TABLE_LBA,
> -                        &(gpt_head), &gpt_pte) != 1) {
> +                        gpt_head, &gpt_pte) != 1) {
>                printf("%s: *** ERROR: Invalid GPT ***\n", __func__);
>                return;
>        }
> @@ -169,7 +169,7 @@ int get_partition_info_efi(block_dev_desc_t * dev_desc, int part,
>
>        /* This function validates AND fills in the GPT header and PTE */
>        if (is_gpt_valid(dev_desc, GPT_PRIMARY_PARTITION_TABLE_LBA,
> -                       &(gpt_head), &gpt_pte) != 1) {
> +                       gpt_head, &gpt_pte) != 1) {
>                printf("%s: *** ERROR: Invalid GPT ***\n", __func__);
>                return -1;
>        }
> --
> 1.7.0.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
diff mbox

Patch

diff --git a/disk/part_efi.c b/disk/part_efi.c
index e7f2714..ddf80a7 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -130,7 +130,7 @@  void print_part_efi(block_dev_desc_t * dev_desc)
 	}
 	/* This function validates AND fills in the GPT header and PTE */
 	if (is_gpt_valid(dev_desc, GPT_PRIMARY_PARTITION_TABLE_LBA,
-			 &(gpt_head), &gpt_pte) != 1) {
+			 gpt_head, &gpt_pte) != 1) {
 		printf("%s: *** ERROR: Invalid GPT ***\n", __func__);
 		return;
 	}
@@ -169,7 +169,7 @@  int get_partition_info_efi(block_dev_desc_t * dev_desc, int part,
 
 	/* This function validates AND fills in the GPT header and PTE */
 	if (is_gpt_valid(dev_desc, GPT_PRIMARY_PARTITION_TABLE_LBA,
-			&(gpt_head), &gpt_pte) != 1) {
+			gpt_head, &gpt_pte) != 1) {
 		printf("%s: *** ERROR: Invalid GPT ***\n", __func__);
 		return -1;
 	}