Skip to content

Commit fb67b17

Browse files
author
Ralph Castain
authored
Merge pull request #5689 from rhc54/topic/psm2
Silence warning of unused function
2 parents 78c1469 + 853dc96 commit fb67b17

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)