diff options
| author | Yann Gautier <yann.gautier@st.com> | 2026-05-28 16:37:40 +0200 |
|---|---|---|
| committer | Yann Gautier <yann.gautier@st.com> | 2026-06-22 19:32:17 +0200 |
| commit | b84ca107d8edc060b6f436dcc0acd097ca55efeb (patch) | |
| tree | d8dba0c4ab17877d00bab09254f89e3dbed41c9c /include | |
| parent | ffc90ff193a0c32af16619a415c89b88edb7a8eb (diff) | |
| download | arm-trusted-firmware-b84ca107d8edc060b6f436dcc0acd097ca55efeb.tar.gz arm-trusted-firmware-b84ca107d8edc060b6f436dcc0acd097ca55efeb.zip | |
fix(arm-drivers): use #ifdef for __aarch64__ flags
The __aarch64__ is only defined, without a value, it should be checked
with #ifdef.
This corrects -Wundef GCC warning.
Change-Id: I4a3bcc78f8e0fe77069a7c7d254fcdfe6fd7d76e
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/drivers/arm/fvp/fvp_cpu_pwr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drivers/arm/fvp/fvp_cpu_pwr.h b/include/drivers/arm/fvp/fvp_cpu_pwr.h index 488be18c5..5eda75911 100644 --- a/include/drivers/arm/fvp/fvp_cpu_pwr.h +++ b/include/drivers/arm/fvp/fvp_cpu_pwr.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2024-2026, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -11,7 +11,7 @@ #include <stdbool.h> #include <stdint.h> -#if __aarch64__ +#ifdef __aarch64__ bool check_cpupwrctrl_el1_is_available(void); #endif /* __aarch64__ */ #endif /* __ASSEMBLER__ */ |
