Skip to content

Commit a880f9e

Browse files
committed
x86/alternative: Convert alternative_call()
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20240607111701.8366-8-bp@kernel.org
1 parent ad36085 commit a880f9e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

arch/x86/include/asm/alternative.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,7 @@ static inline int alternatives_text_reserved(void *start, void *end)
349349
* suffix.
350350
*/
351351
#define alternative_call(oldfunc, newfunc, ft_flags, output, input...) \
352-
asm_inline volatile (ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \
353-
: output : [old] "i" (oldfunc), [new] "i" (newfunc), ## input)
354-
355-
#define n_alternative_call(oldfunc, newfunc, ft_flags, output, input...) \
356-
asm_inline volatile (N_ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \
352+
asm_inline volatile(N_ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \
357353
: output : [old] "i" (oldfunc), [new] "i" (newfunc), ## input)
358354

359355
/*

0 commit comments

Comments
 (0)