From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794591139; b=m549lsU6Irx7UuwiFerEl98IHDt7wPvAwpHYwoFs7q1qGrxOoDgOmTbjehBfbNPdK0LX YS22Vjl63dDfTSRPJt26Dkc4Koq5Lulh40fop/1np3C1LNjaJQlPmf0utVaW65/fMPaEZ OA+sy5daz/f6/ZJB4Lv8lwAnUzv8hE5Y2xZ4JybFis0q1fLiEolye4ASh1XJVKejzTHbx OxTUqy9PszKYXJEb+MRT/Hd3/5whhKVB1j+Qnp6xBiIAVeyrauBycHsLz+Qz/1AfBPFy5 tD4PdQs4LvhJgzaNyc/UdjCe2GlWc1Db6YqLpbUS5AEhjVjUY0HFV7jfM8ywh0H2K4w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794591139; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=ZAZikEfffK1YFy7VC8aaTN28K8WvUqdYV5MZKCeKt2k=; b=HATjnA7GxlPkNUqwMDOgutGIqMhFrpx1UpF2/rGOmOkPPcPepP2fS/Y34pdW+lZjp2dQ Zj7xRvteJq1B1w1I24pnuQOFSvluHdkCUM1skobZb2+18d8TT4rvLdhwmmh9B8nE6LVSA SpLmfpTrNwzZsZJcksB+kDHengsJ2OSOv0LYJpiCuhehszqOX60EP74HqgSbvWBvPkmPJ PJAC6WwXDXSkKBwbI+w8fnn1ALP/CY1iNxCWxSKuHvmzIDV/+8/91lkS9A+5HHbrrHbOQ L6JQjhWJcj9NFLfigwFCn4f7s7goqHdgpYLwJLiWWDdXTD23DkR4twnrfYcOvklcQpQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Uoxoxgds; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01F9B606BD26; Fri, 13 Nov 2026 17:32:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Uoxoxgds Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA5CD1F000C4; Fri, 13 Nov 2026 17:32:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794591138; bh=ZAZikEfffK1YFy7VC8aaTN28K8WvUqdYV5MZKCeKt2k=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UoxoxgdsM1qGGbxMnlxKTOsUu1H98o2jUs7lEk/2mkLaC7/NxcOoKHITpElrdyNZe QivuWDAwvcT+5fLLs6x8uW/uYfieUWsQwzkpOvCLEinl6urUj9HJRRZAcjAF2Ej9OH b25oAXaDUzxaMily4i7z6ZtdpJBSDcDfJhFQko8c= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andrew Morton , kernel test robot , Bradley Morgan , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Arnd Bergmann , Karl Mehltretter , Sasha Levin Subject: [PATCH 6.12 284/670] openrisc: export __mulsi3 for modules Date: Fri, 13 Nov 2026 10:47:28 -0500 Message-ID: <20261113153821.504136966@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261113153811.177190860@linuxfoundation.org> References: <20261113153811.177190860@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andrew Morton [ Upstream commit 8ff981aa283a0ce516c2dc65a48a185ed336c657 ] OpenRISC configurations without hardware multiplication fail to build modules which contain compiler-generated calls to __mulsi3. The failure is widespread, affecting filesystems, drivers and KUnit tests at modpost. When CONFIG_OPENRISC_HAVE_INST_MUL is disabled, the architecture Makefile passes -msoft-mul to GCC. The multiplication helper is supplied by the libgcc archive linked into vmlinux, but or32_ksyms.c does not export it. Built-in callers can therefore link while module callers cannot resolve the symbol. Export __mulsi3 alongside the other compiler-generated helpers. The omission predates 7c3f4d699f34 ("resource, kunit: stop selecting GET_FREE_REGION"), which the robot identified when reporting an additional failing module. It was already present in the initial OpenRISC export list. Fixes: 616257669e1a ("OpenRISC: Miscellaneous") Signed-off-by: Andrew Morton Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202610290106.o8Fs3NvO-lkp@intel.com/ Reviewed-by: Bradley Morgan Cc: Jonas Bonn Cc: Stefan Kristiansson Cc: Stafford Horne Cc: Arnd Bergmann Cc: Karl Mehltretter Cc: Signed-off-by: Sasha Levin --- arch/openrisc/kernel/or32_ksyms.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/openrisc/kernel/or32_ksyms.c b/arch/openrisc/kernel/or32_ksyms.c index 212e5f85004cc..c63d7f25bc575 100644 --- a/arch/openrisc/kernel/or32_ksyms.c +++ b/arch/openrisc/kernel/or32_ksyms.c @@ -35,6 +35,7 @@ DECLARE_EXPORT(__divsi3); DECLARE_EXPORT(__umodsi3); DECLARE_EXPORT(__modsi3); DECLARE_EXPORT(__muldi3); +DECLARE_EXPORT(__mulsi3); DECLARE_EXPORT(__ashrdi3); DECLARE_EXPORT(__ashldi3); DECLARE_EXPORT(__lshrdi3); -- 2.53.0