Skip to content

Commit

Permalink
part_efi: Fix compile errors
Browse files Browse the repository at this point in the history
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':
part_efi.c:384:18: error: 'CONFIG_SYS_CACHELINE_SIZE' undeclare
d (first use in this function)

Signed-off-by: Sanjeev Premi <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Anton staaf <[email protected]>
Signed-off-by: Sandeep Paulraj <[email protected]>
  • Loading branch information
Sanjeev Premi authored and albert-aribaud-u-boot committed Dec 6, 2011
1 parent ea45cb0 commit 29b7042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disk/part_efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ static gpt_entry *alloc_read_gpt_entries(block_dev_desc_t * dev_desc,

/* Allocate memory for PTE, remember to FREE */
if (count != 0) {
pte = memalign(CONFIG_SYS_CACHELINE_SIZE, count);
pte = memalign(ARCH_DMA_MINALIGN, count);
}

if (count == 0 || pte == NULL) {
Expand Down

0 comments on commit 29b7042

Please sign in to comment.