forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 890e1df1bec891d9203724541e81f8fbe5183388
kernel/arch/s390/include/asm/alternative.h
....@@ -139,10 +139,10 @@
139139 * without volatile and memory clobber.
140140 */
141141 #define alternative(oldinstr, altinstr, facility) \
142
- asm volatile(ALTERNATIVE(oldinstr, altinstr, facility) : : : "memory")
142
+ asm_inline volatile(ALTERNATIVE(oldinstr, altinstr, facility) : : : "memory")
143143
144144 #define alternative_2(oldinstr, altinstr1, facility1, altinstr2, facility2) \
145
- asm volatile(ALTERNATIVE_2(oldinstr, altinstr1, facility1, \
145
+ asm_inline volatile(ALTERNATIVE_2(oldinstr, altinstr1, facility1, \
146146 altinstr2, facility2) ::: "memory")
147147
148148 #endif /* __ASSEMBLY__ */