From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C9B90149C69; Fri, 6 Dec 2024 14:55:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733496924; cv=none; b=p0gBTLG3wVcjSvBqSGf0vIc5eFjVG32Dds5te/ZU1p/NlWUucQWr5C82mI/U9Q0t2LVAFzk5BEglRZvuAWCwJzuw0j6KgMC8PV83zeKMQNxh3NM7FKvjsspjsavUu7RJza74M9slOiFeYXCZYuz1RoVvey1RfCI2Sma0vDtpCEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733496924; c=relaxed/simple; bh=a4yGp/7oRxGGSK6mw3UlSTT36KU9biI8Gctf0ozPQDQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XV4IIJvo56Ryr+hsiDlQ43G6lh6Hji59xFlRO9HcCCDYU+8UCj/EnyxE4cGcrhUAFE7Nl4aqNwTUZ0ewIt8FYl6HTz/U2T46wXRQurvJhjGv/BGy9LhIxOFwTq/3/dUr/oRq5z3af5NhZtpkSULC+iiAUw9HeVfG1RZLME3PsU4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2Mqz/m++; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2Mqz/m++" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37657C4CED1; Fri, 6 Dec 2024 14:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733496924; bh=a4yGp/7oRxGGSK6mw3UlSTT36KU9biI8Gctf0ozPQDQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2Mqz/m++5ypzGitTxLLODMGqcG3LazruKJMNVzKEStWTQ+rLRcdV+72lIIMaQfJ04 ySJCELl9H4yWwc0zM8WygmcsXL7Xyh8y/pp4JrK/e3+lYrgahTatYmkWMebz9fpN// zVxR3lsKq2V+Xgxbvi+7TBVD8jvN2HvPFdtjt3TI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jeff Johnson , Michal Simek , Sasha Levin Subject: [PATCH 6.6 114/676] microblaze: Export xmb_manager functions Date: Fri, 6 Dec 2024 15:28:53 +0100 Message-ID: <20241206143657.812691791@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241206143653.344873888@linuxfoundation.org> References: <20241206143653.344873888@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michal Simek [ Upstream commit badf752b5e4b17d281f93f409d4718388ff912e6 ] When TMR_MANAGER is enabled as module there is a need to export functions which are present in architecture code. It has been found by running: make W=1 C=1 allmodconfig sed -i -e 's/WERROR=y/WERROR=n/g' .config make C=1 W=1 which errors out like this: ERROR: modpost: "xmb_manager_register" [drivers/misc/xilinx_tmr_manager.ko] undefined! ERROR: modpost: "xmb_inject_err" [drivers/misc/xilinx_tmr_inject.ko] undefined! Fixes: a5e3aaa654c1 ("microblaze: Add xmb_manager_register function") Reported-by: Jeff Johnson Signed-off-by: Michal Simek Link: https://lore.kernel.org/r/e322dbbbde0feef83f44304ea13249d365d1dc5f.1718799090.git.michal.simek@amd.com Signed-off-by: Sasha Levin --- arch/microblaze/kernel/microblaze_ksyms.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/microblaze/kernel/microblaze_ksyms.c b/arch/microblaze/kernel/microblaze_ksyms.c index c892e173ec990..a8553f54152b7 100644 --- a/arch/microblaze/kernel/microblaze_ksyms.c +++ b/arch/microblaze/kernel/microblaze_ksyms.c @@ -16,6 +16,7 @@ #include #include #include +#include #ifdef CONFIG_FUNCTION_TRACER extern void _mcount(void); @@ -46,3 +47,12 @@ extern void __udivsi3(void); EXPORT_SYMBOL(__udivsi3); extern void __umodsi3(void); EXPORT_SYMBOL(__umodsi3); + +#ifdef CONFIG_MB_MANAGER +extern void xmb_manager_register(uintptr_t phys_baseaddr, u32 cr_val, + void (*callback)(void *data), + void *priv, void (*reset_callback)(void *data)); +EXPORT_SYMBOL(xmb_manager_register); +extern asmlinkage void xmb_inject_err(void); +EXPORT_SYMBOL(xmb_inject_err); +#endif -- 2.43.0