[PATCH v3 5/7] MIPS: Eliminate redundant KBUILD_SYM32 check

From: Maciej W. Rozycki

Date: Sat Sep 19 2026 - 11:15:33 EST


From: WangYuli <wangyuli@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
Signed-off-by: Maciej W. Rozycki <macro@xxxxxxxxxxx>
---
Changes from v2 (2/6),
<https://lore.kernel.org/r/5D20D311FB1FCDF1+20250422102253.137944-2-wangyuli@xxxxxxxxxxxxx/>:

- Fix the style with the commit heading.
---
arch/mips/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

linux-wangyuli-mips-dec-kbuild-sym32-y.diff
Index: linux-macro/arch/mips/Makefile
===================================================================
--- linux-macro.orig/arch/mips/Makefile
+++ linux-macro/arch/mips/Makefile
@@ -299,7 +299,7 @@ ifdef need-compiler
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)