[PATCH 13/20] x86/alternative: Remove alternative_input()
From: Josh Poimboeuf
Date: Fri Mar 14 2025 - 17:50:15 EST
alternative_input() is redundant with alternative_io(), and has no more
users. Remove it.
Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
---
arch/x86/include/asm/alternative.h | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h
index 92014d56e3aa..119c24329ef1 100644
--- a/arch/x86/include/asm/alternative.h
+++ b/arch/x86/include/asm/alternative.h
@@ -209,16 +209,6 @@ static inline int alternatives_text_reserved(void *start, void *end)
#define alternative_2(oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2) \
alternatve_2_io(oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2,,)
-/*
- * Alternative inline assembly with input.
- *
- * Peculiarities:
- * No memory clobber here.
- */
-#define alternative_input(oldinstr, newinstr, ft_flags, input...) \
- asm_inline volatile(ALTERNATIVE(oldinstr, newinstr, ft_flags) \
- : : input)
-
/*
* Alternative inline assembly with input, output and clobbers.
*
--
2.48.1