[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <183F7B3F0A07AC93+20241224060918.15199-1-wangyuli@uniontech.com>
Date: Tue, 24 Dec 2024 14:09:18 +0800
From: WangYuli <wangyuli@...ontech.com>
To: gregkh@...uxfoundation.org,
sashal@...nel.org,
stable@...r.kernel.org
Cc: jiaxun.yang@...goat.com,
tsbogend@...ha.franken.de,
linux-mips@...r.kernel.org,
linux-kernel@...r.kernel.org,
guanwentao@...ontech.com,
baimingcong@...ontech.com,
revy@...pin.org,
WangYuli <wangyuli@...ontech.com>
Subject: [PATCH 5.4~6.6] MIPS: Probe toolchain support of -msym32
From: Jiaxun Yang <jiaxun.yang@...goat.com>
[ Upstream commit 18ca63a2e23c5e170d2d7552b64b1f5ad019cd9b ]
msym32 is not supported by LLVM toolchain.
Workaround by probe toolchain support of msym32 for KBUILD_SYM32
feature.
Link: https://github.com/ClangBuiltLinux/linux/issues/1544
Signed-off-by: Jiaxun Yang <jiaxun.yang@...goat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Signed-off-by: WangYuli <wangyuli@...ontech.com>
---
arch/mips/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index f49807e1f19b..0888074f4dfe 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -299,7 +299,7 @@ drivers-$(CONFIG_PCI) += arch/mips/pci/
ifdef CONFIG_64BIT
ifndef KBUILD_SYM32
ifeq ($(shell expr $(load-y) \< 0xffffffff80000000), 0)
- KBUILD_SYM32 = y
+ KBUILD_SYM32 = $(call cc-option-yn, -msym32)
endif
endif
--
2.47.1
Powered by blists - more mailing lists