summaryrefslogtreecommitdiff
path: root/lib/xlat_tables_v2
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2019-01-30 08:31:07 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2019-02-07 09:01:12 -0800
commita1d00bb3ce26e3cee34ae784117cf04a27681395 (patch)
tree93236f7504a432cab2698a6b442321a2c1deffa4 /lib/xlat_tables_v2
parent596929b971dc4366a490d5909a265c038502d284 (diff)
downloadarm-trusted-firmware-a1d00bb3ce26e3cee34ae784117cf04a27681395.tar.gz
xlat_tables_v2: mark 'xlat_clean_dcache_range' unused
The armclang compiler can warn if a variable is declared but is never referenced. The '__attribute__((unused))' attribute informs the compiler to expect an unused variable, and tells it not to issue a warning. This patch marks the 'xlat_clean_dcache_range' function as "unused" to fix this armclang compiler warning. Change-Id: I7623f61c2975a01db4d1b80554dd4f9a9e0f7eb6 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'lib/xlat_tables_v2')
-rw-r--r--lib/xlat_tables_v2/xlat_tables_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xlat_tables_v2/xlat_tables_core.c b/lib/xlat_tables_v2/xlat_tables_core.c
index 4820b4f80..d7d8c220a 100644
--- a/lib/xlat_tables_v2/xlat_tables_core.c
+++ b/lib/xlat_tables_v2/xlat_tables_core.c
@@ -21,7 +21,7 @@
#include "xlat_tables_private.h"
/* Helper function that cleans the data cache only if it is enabled. */
-static inline void xlat_clean_dcache_range(uintptr_t addr, size_t size)
+static inline __attribute__((unused)) void xlat_clean_dcache_range(uintptr_t addr, size_t size)
{
if (is_dcache_enabled())
clean_dcache_range(addr, size);