Skip to content

Commit 853dc96

Browse files
author
Ralph Castain
committed
Silence warning of unused function
Requires protection for HAVE___CLEAR_CACHE Signed-off-by: Ralph Castain <rhc@open-mpi.org>
1 parent b83ad04 commit 853dc96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opal/mca/patcher/base/patcher_base_patch.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ static int PatchLoadImm (uintptr_t addr, unsigned int reg, size_t value)
7777

7878
#endif
7979

80+
#if !HAVE___CLEAR_CACHE
8081
static void flush_and_invalidate_cache (unsigned long a)
8182
{
8283
#if OPAL_ASSEMBLY_ARCH == OPAL_IA32
@@ -114,6 +115,7 @@ static void flush_and_invalidate_cache (unsigned long a)
114115
"isb":: "r" (a));
115116
#endif
116117
}
118+
#endif // HAVE___CLEAR_CACHE
117119

118120
// modify protection of memory range
119121
static void ModifyMemoryProtection (uintptr_t addr, size_t length, int prot)

0 commit comments

Comments
 (0)