mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
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>
This commit is contained in:
parent
596929b971
commit
a1d00bb3ce
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue