From patchwork Tue Dec 24 06:09:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: WangYuli X-Patchwork-Id: 13919696 Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96F641487D5; Tue, 24 Dec 2024 06:12:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.92.39.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735020761; cv=none; b=X/9MDL2cxhmNEYlHTVEVgHtAtebZsNnwn7CcnFhXkypydPMzPCZWUFJbEoX6wgvOAfXkckZL4q09HLWENUyO8gmB4fx4zoJq5JEF0z/ENoAgfBVRePcx5XLbmQ5S5ZaPZb9P9Oy8OVNN4ssOCks8zzfsuBs1aymipslp3nNx3a0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735020761; c=relaxed/simple; bh=0KwGciMbbMIvdCsfeKFBeBug/lObwJGpllXY4dqmF5g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=vBsqEURYh1h1ZgGHcwZ8iJHV/vfaVZ6EzE9dc6EStxWxBOitReMV4sUv9TsQSFqy4xnAqb/FZLmRgJApb3TALTxO3B9W7U49thAWe0HOVnnUPY91smhY0zkHuxJCzLU6d+pThs0mql4E9XnJvyp4yETwUgaECtgFoNhSr5ESABk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com; spf=pass smtp.mailfrom=uniontech.com; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b=RVXu0FEv; arc=none smtp.client-ip=54.92.39.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniontech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b="RVXu0FEv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1735020688; bh=IAzDc9MfMmq2YmPNIrP/dODV2uxxUZPudpTQKPDJALc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=RVXu0FEvUlfdLeWm30nHmY7kJS2FwoQOzdydFq2axEfLGWMkrauzunPSc1la3wqdz LQiB6jEuqYi/nd1yJswnl9DGvq5QmXJ3HdscsroDt7zIZ22K8PmLSzw8BxeaGrpl0+ dBI7Cg5Pvm3/N/i0U0fBb1VQYLy7I/yatu+UFlYI= X-QQ-mid: bizesmtpip3t1735020648tlxa9hx X-QQ-Originating-IP: tPZRCzswTjBVcac3tacxG9Z6CVY2UcrpN8n8sRX2X9E= Received: from localhost.localdomain ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 24 Dec 2024 14:10:46 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 2400545881246479525 From: WangYuli To: gregkh@linuxfoundation.org, sashal@kernel.org, stable@vger.kernel.org Cc: jiaxun.yang@flygoat.com, tsbogend@alpha.franken.de, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, guanwentao@uniontech.com, baimingcong@uniontech.com, revy@deepin.org, WangYuli Subject: [PATCH 5.4~6.6] MIPS: Probe toolchain support of -msym32 Date: Tue, 24 Dec 2024 14:09:18 +0800 Message-ID: <183F7B3F0A07AC93+20241224060918.15199-1-wangyuli@uniontech.com> X-Mailer: git-send-email 2.47.1 Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:uniontech.com:qybglogicsvrgz:qyb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95Bth2bWPxk= X-QQ-RECHKSPAM: 0 From: Jiaxun Yang [ 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 Signed-off-by: Thomas Bogendoerfer Signed-off-by: WangYuli --- 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