Skip to content

Commit 8dc8b02

Browse files
committed
x86/alternatives: Remove alternative_input_2()
It is unused. Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20240506122848.20326-1-bp@kernel.org
1 parent 05d277c commit 8dc8b02

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

arch/x86/include/asm/alternative.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -286,20 +286,6 @@ static inline int alternatives_text_reserved(void *start, void *end)
286286
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) \
287287
: : "i" (0), ## input)
288288

289-
/*
290-
* This is similar to alternative_input. But it has two features and
291-
* respective instructions.
292-
*
293-
* If CPU has feature2, newinstr2 is used.
294-
* Otherwise, if CPU has feature1, newinstr1 is used.
295-
* Otherwise, oldinstr is used.
296-
*/
297-
#define alternative_input_2(oldinstr, newinstr1, ft_flags1, newinstr2, \
298-
ft_flags2, input...) \
299-
asm_inline volatile(ALTERNATIVE_2(oldinstr, newinstr1, ft_flags1, \
300-
newinstr2, ft_flags2) \
301-
: : "i" (0), ## input)
302-
303289
/* Like alternative_input, but with a single output argument */
304290
#define alternative_io(oldinstr, newinstr, ft_flags, output, input...) \
305291
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) \

0 commit comments

Comments
 (0)