Re: [PATCH] x86/cpu: remove unused AMD Elan cflags definition
From: Borislav Petkov
Date: Tue Jun 09 2026 - 23:01:37 EST
On Mon, Jun 08, 2026 at 09:42:12PM -0700, Ethan Nelson-Moore wrote:
> Support for AMD Elan CPUs was removed in commit 8b793a92d862 ("x86/cpu:
> Remove M486/M486SX/ELAN support"), but the cflags -march= definition
> for CONFIG_MELAN was not removed. Remove it.
>
> Signed-off-by: Ethan Nelson-Moore <enelsonmoore@xxxxxxxxx>
> ---
> arch/x86/Makefile_32.cpu | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/arch/x86/Makefile_32.cpu b/arch/x86/Makefile_32.cpu
> index 7c9898c15376..8bad96d7c463 100644
> --- a/arch/x86/Makefile_32.cpu
> +++ b/arch/x86/Makefile_32.cpu
> @@ -31,9 +31,6 @@ cflags-$(CONFIG_MVIAC3_2) += $(call cc-option,-march=c3-2,-march=i686)
> cflags-$(CONFIG_MVIAC7) += -march=i686
> cflags-$(CONFIG_MATOM) += -march=atom
>
> -# AMD Elan support
> -cflags-$(CONFIG_MELAN) += -march=i486
> -
> # Geode GX1 support
> cflags-$(CONFIG_MGEODEGX1) += -march=pentium-mmx
> cflags-$(CONFIG_MGEODE_LX) += $(call cc-option,-march=geode,-march=pentium-mmx)
> --
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=x86/cpu&id=435ef16e69b9d7f9cdf460a4c2edd20bb47d51fa
Patches for tip should be done against tip/master.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette