summaryrefslogtreecommitdiff
path: root/include/lib
diff options
context:
space:
mode:
authorJayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>2023-03-01 15:35:28 +0000
committerjayanthchidanand-arm <jayanthdodderi.chidanand@arm.com>2023-03-01 17:54:07 +0100
commite8f0dd58da231b81ba0ce6f27aaf1e31b4d4c429 (patch)
treebe73589f0975248fc8bc18f9c5db21475b22fa8f /include/lib
parent55d5c6a16ab69b2c99aedbd1aa0d3e58350f4380 (diff)
downloadarm-trusted-firmware-e8f0dd58da231b81ba0ce6f27aaf1e31b4d4c429.tar.gz
fix(cpufeat): resolve build errors due to compiler optimization
Currently most of the architectural feature build flags are set to 2(FEATURE_STATE_CHECK) for fvp platform only. However other platforms still configure them by default to 0, which would lead to build failures in cases when compiler configured to build TF-A with zero optimization (CFLAGS='-O0'). This patch addresses such build issues and thereby resolves the failures seen under CI-l3 test_configurations. Change-Id: I45b82b821951bba6b9df08177f7d286e624a4239 Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
Diffstat (limited to 'include/lib')
-rw-r--r--include/lib/extensions/brbe.h8
-rw-r--r--include/lib/extensions/trbe.h8
-rw-r--r--include/lib/extensions/trf.h8
3 files changed, 21 insertions, 3 deletions
diff --git a/include/lib/extensions/brbe.h b/include/lib/extensions/brbe.h
index aac1ace59..aee208d04 100644
--- a/include/lib/extensions/brbe.h
+++ b/include/lib/extensions/brbe.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2022, Arm Limited. All rights reserved.
+ * Copyright (c) 2022-2023, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -7,6 +7,12 @@
#ifndef BRBE_H
#define BRBE_H
+#if ENABLE_BRBE_FOR_NS
void brbe_enable(void);
+#else
+void brbe_enable(void)
+{
+}
+#endif /* ENABLE_BRBE_FOR_NS */
#endif /* BRBE_H */
diff --git a/include/lib/extensions/trbe.h b/include/lib/extensions/trbe.h
index 1753ab6bf..0eff7c4ee 100644
--- a/include/lib/extensions/trbe.h
+++ b/include/lib/extensions/trbe.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021, Arm Limited. All rights reserved.
+ * Copyright (c) 2021-2023, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -7,6 +7,12 @@
#ifndef TRBE_H
#define TRBE_H
+#if ENABLE_TRBE_FOR_NS
void trbe_enable(void);
+#else
+void trbe_enable(void)
+{
+}
+#endif /* ENABLE_TRBE_FOR_NS */
#endif /* TRBE_H */
diff --git a/include/lib/extensions/trf.h b/include/lib/extensions/trf.h
index 18f17f36d..a440abd4b 100644
--- a/include/lib/extensions/trf.h
+++ b/include/lib/extensions/trf.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021, Arm Limited. All rights reserved.
+ * Copyright (c) 2021-2023, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -7,6 +7,12 @@
#ifndef TRF_H
#define TRF_H
+#if ENABLE_TRF_FOR_NS
void trf_enable(void);
+#else
+void trf_enable(void)
+{
+}
+#endif /* ENABLE_TRF_FOR_NS */
#endif /* TRF_H */