diff options
| author | Yann Gautier <yann.gautier@st.com> | 2026-05-27 15:01:22 +0200 |
|---|---|---|
| committer | Yann Gautier <yann.gautier@st.com> | 2026-06-23 06:53:24 +0000 |
| commit | 68dd3c9c48d07c960cebc1cddf055302e93fb830 (patch) | |
| tree | a20ae428229d35f142fc5a66de9ea6ce575b54fc /include | |
| parent | 552ca6fa44d0cb0225346f0bd0272823af7e30ea (diff) | |
| download | arm-trusted-firmware-68dd3c9c48d07c960cebc1cddf055302e93fb830.tar.gz arm-trusted-firmware-68dd3c9c48d07c960cebc1cddf055302e93fb830.zip | |
fix(guid-partition): check definition of platform flags
PLAT_PARTITION_MAX_ENTRIES & PLAT_PARTITION_BLOCK_SIZE may not be
defined by platform code in order to use the default values.
Those flag will then not be defined, and this can trigger a warning
when enabling -Wundef flag.
Change-Id: I4c872a40b035aaf874553629d45ea509c88c8f26
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/drivers/partition/partition.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drivers/partition/partition.h b/include/drivers/partition/partition.h index ed6d13399..6c5b40a73 100644 --- a/include/drivers/partition/partition.h +++ b/include/drivers/partition/partition.h @@ -13,13 +13,13 @@ #include <drivers/partition/efi.h> #include <tools_share/uuid.h> -#if !PLAT_PARTITION_MAX_ENTRIES +#if !defined(PLAT_PARTITION_MAX_ENTRIES) || !PLAT_PARTITION_MAX_ENTRIES # define PLAT_PARTITION_MAX_ENTRIES 128 #endif /* PLAT_PARTITION_MAX_ENTRIES */ CASSERT(PLAT_PARTITION_MAX_ENTRIES <= 128, assert_plat_partition_max_entries); -#if !PLAT_PARTITION_BLOCK_SIZE +#if !defined(PLAT_PARTITION_BLOCK_SIZE) || !PLAT_PARTITION_BLOCK_SIZE # define PLAT_PARTITION_BLOCK_SIZE 512 #endif /* PLAT_PARTITION_BLOCK_SIZE */ |
