mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/alternative: clean up asm/alternative.h
@ 2025-05-05 13:16 Juergen Gross
  2025-05-05 16:26 ` Dave Hansen
  0 siblings, 1 reply; 2+ messages in thread
From: Juergen Gross @ 2025-05-05 13:16 UTC (permalink / raw)
  To: linux-kernel, x86
  Cc: Juergen Gross, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, H. Peter Anvin

Remove some unused macros in arch/x86/include/asm/alternative.h which
could potentially result in weird build failures.

Fixes: 1a6ade825079 ("x86/alternative: Convert the asm ALTERNATIVE_3() macro")
Signed-off-by: Juergen Gross <jgross@suse.com>
---
 arch/x86/include/asm/alternative.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h
index 4a37a8bd87fd..8359ed0f2090 100644
--- a/arch/x86/include/asm/alternative.h
+++ b/arch/x86/include/asm/alternative.h
@@ -335,11 +335,6 @@ void nop_func(void);
 	__ALTERNATIVE(\oldinstr, \newinstr, \ft_flags)
 .endm
 
-#define old_len			141b-140b
-#define new_len1		144f-143f
-#define new_len2		145f-144f
-#define new_len3		146f-145f
-
 /*
  * Same as ALTERNATIVE macro above but for two alternatives. If CPU
  * has @feature1, it replaces @oldinstr with @newinstr1. If CPU has
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] x86/alternative: clean up asm/alternative.h
  2025-05-05 13:16 [PATCH] x86/alternative: clean up asm/alternative.h Juergen Gross
@ 2025-05-05 16:26 ` Dave Hansen
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Hansen @ 2025-05-05 16:26 UTC (permalink / raw)
  To: Juergen Gross, linux-kernel, x86
  Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
	H. Peter Anvin

On 5/5/25 06:16, Juergen Gross wrote:
> -#define old_len			141b-140b
> -#define new_len1		144f-143f
> -#define new_len2		145f-144f
> -#define new_len3		146f-145f

I was surprised these haven't already broken the build, but they're
under an #ifdef __ASSEMBLER__ which I guess limits the damage.

Also, just a little note: The subject here is a bit anemic. I can pretty
easily and unambiguously tell the file from the diffstat. Wouldn't
something like this be slightly more helpful?

	x86/alternative: Remove unused header #defines


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-05-05 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-05 13:16 [PATCH] x86/alternative: clean up asm/alternative.h Juergen Gross
2025-05-05 16:26 ` Dave Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®