Skip to content

Commit ad36085

Browse files
committed
x86/alternative: Convert alternative_io()
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-7-bp@kernel.org
1 parent bb91576 commit ad36085

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
@@ -335,11 +335,7 @@ static inline int alternatives_text_reserved(void *start, void *end)
335335

336336
/* Like alternative_input, but with a single output argument */
337337
#define alternative_io(oldinstr, newinstr, ft_flags, output, input...) \
338-
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) \
339-
: output : "i" (0), ## input)
340-
341-
#define n_alternative_io(oldinstr, newinstr, ft_flags, output, input...) \
342-
asm_inline volatile (N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \
338+
asm_inline volatile(N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \
343339
: output : "i" (0), ## input)
344340

345341
/*

0 commit comments

Comments
 (0)