diff options
| author | Yann Gautier <yann.gautier@st.com> | 2026-05-28 16:56:25 +0200 |
|---|---|---|
| committer | Yann Gautier <yann.gautier@st.com> | 2026-06-22 19:38:40 +0200 |
| commit | c047a9fb5b22c13cf571c8fb544b57855ffe49ec (patch) | |
| tree | c5087ff2a05d53efc605a0971713c025e7143cc7 /include | |
| parent | 552ca6fa44d0cb0225346f0bd0272823af7e30ea (diff) | |
| download | arm-trusted-firmware-c047a9fb5b22c13cf571c8fb544b57855ffe49ec.tar.gz arm-trusted-firmware-c047a9fb5b22c13cf571c8fb544b57855ffe49ec.zip | |
fix(bl): use #ifdef PLAT_RO_XLAT_TABLES
PLAT_RO_XLAT_TABLES is only defined without a value, it should be
checked with `#ifdef`.
This corrects -Wundef GCC warnings.
Change-Id: I95df7e0721263fc4ca31ffeb1d582a74064be567
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/common/bl_common.ld.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/common/bl_common.ld.h b/include/common/bl_common.ld.h index 57e7524d0..a173d7d99 100644 --- a/include/common/bl_common.ld.h +++ b/include/common/bl_common.ld.h @@ -84,7 +84,7 @@ /* * The base xlat table * - * It is put into the rodata section if PLAT_RO_XLAT_TABLES=1, + * It is put into the rodata section if PLAT_RO_XLAT_TABLES is defined, * or into the bss section otherwise. */ #define BASE_XLAT_TABLE \ @@ -93,7 +93,7 @@ *(.base_xlat_table) \ __BASE_XLAT_TABLE_END__ = .; -#if PLAT_RO_XLAT_TABLES +#ifdef PLAT_RO_XLAT_TABLES #define BASE_XLAT_TABLE_RO BASE_XLAT_TABLE #define BASE_XLAT_TABLE_BSS #else |
