diff mbox series

[v3,2/2] MIPS: Eliminate Redundant KBUILD_SYM32 Checks

Message ID 17393503EFD3A534+20250217142857.49414-2-wangyuli@uniontech.com (mailing list archive)
State New
Headers show
Series MIPS: dec: Only check -msym32 when need compiler | expand

Commit Message

WangYuli Feb. 17, 2025, 2:28 p.m. UTC
Given that KBUILD_SYM32=y is a prerequisite for this statement to be
executed, it's logically redundant to verify KBUILD_SYM32 is y again.

Signed-off-by: WangYuli <wangyuli@uniontech.com>
---
 arch/mips/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 89928d6d4b5b..c302115ea42e 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -303,7 +303,7 @@  ifdef CONFIG_64BIT
   endif
 
   ifeq ($(KBUILD_SYM32), y)
-    cflags-$(KBUILD_SYM32) += -msym32 -DKBUILD_64BIT_SYM32
+    cflags-y += -msym32 -DKBUILD_64BIT_SYM32
   else
     ifeq ($(CONFIG_CPU_DADDI_WORKAROUNDS), y)
       $(error CONFIG_CPU_DADDI_WORKAROUNDS unsupported without -msym32)