Skip to content

Commit 5ffde16

Browse files
committed
opal/asm: Fix a compiler warning on POWER arch
OPAL_XLC_INLINE_ASSEMBLY was removed in commit ebce88b. Removing dead code, which also fixes a compiler warning. Signed-off-by: Nysal Jan K.A <jnysal@in.ibm.com>
1 parent 25b0850 commit 5ffde16

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

opal/include/opal/sys/powerpc/atomic.h

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -98,27 +98,7 @@ void opal_atomic_isync(void)
9898
ISYNC();
9999
}
100100

101-
#elif OPAL_XLC_INLINE_ASSEMBLY /* end OPAL_GCC_INLINE_ASSEMBLY */
102-
103-
/* Yeah, I don't know who thought this was a reasonable syntax for
104-
* inline assembly. Do these because they are used so often and they
105-
* are fairly simple (aka: there is a tech pub on IBM's web site
106-
* containing the right hex for the instructions).
107-
*/
108-
109-
#undef OPAL_HAVE_INLINE_ATOMIC_MEM_BARRIER
110-
#define OPAL_HAVE_INLINE_ATOMIC_MEM_BARRIER 0
111-
112-
#pragma mc_func opal_atomic_mb { "7c0004ac" } /* sync */
113-
#pragma reg_killed_by opal_atomic_mb /* none */
114-
115-
#pragma mc_func opal_atomic_rmb { "7c2004ac" } /* lwsync */
116-
#pragma reg_killed_by opal_atomic_rmb /* none */
117-
118-
#pragma mc_func opal_atomic_wmb { "7c2004ac" } /* lwsync */
119-
#pragma reg_killed_by opal_atomic_wmb /* none */
120-
121-
#endif
101+
#endif /* end OPAL_GCC_INLINE_ASSEMBLY */
122102

123103
/**********************************************************************
124104
*

0 commit comments

Comments
 (0)