mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
disk: Tidy up #ifdefs in part_efi
This file does not correctly handle the various cases, sometimes producing warnings about partition_basic_data_guid being defined but not used. Fix it. There was some discussion about adjusting Kconfig or making HAVE_BLOCK_DEVICE a prerequisite for PARTITIONS, but apparently this is not feasible. Such changes can be undertaken separate from the goal of this series. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c72c7d9db5
commit
a594b41f86
@ -29,12 +29,13 @@
|
|||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
/*
|
|
||||||
* GUID for basic data partions.
|
|
||||||
*/
|
|
||||||
static const efi_guid_t partition_basic_data_guid = PARTITION_BASIC_DATA_GUID;
|
|
||||||
|
|
||||||
#ifdef CONFIG_HAVE_BLOCK_DEVICE
|
#ifdef CONFIG_HAVE_BLOCK_DEVICE
|
||||||
|
|
||||||
|
/* GUID for basic data partitons */
|
||||||
|
#if CONFIG_IS_ENABLED(EFI_PARTITION)
|
||||||
|
static const efi_guid_t partition_basic_data_guid = PARTITION_BASIC_DATA_GUID;
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* efi_crc32() - EFI version of crc32 function
|
* efi_crc32() - EFI version of crc32 function
|
||||||
* @buf: buffer to calculate crc32 of
|
* @buf: buffer to calculate crc32 of
|
||||||
@ -1126,4 +1127,4 @@ U_BOOT_PART_TYPE(a_efi) = {
|
|||||||
.print = part_print_ptr(part_print_efi),
|
.print = part_print_ptr(part_print_efi),
|
||||||
.test = part_test_efi,
|
.test = part_test_efi,
|
||||||
};
|
};
|
||||||
#endif
|
#endif /* CONFIG_HAVE_BLOCK_DEVICE */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user