From nobody Sun Feb 8 13:27:42 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 767C7231845 for ; Thu, 18 Dec 2025 10:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766052355; cv=none; b=azbTQhhMcrI60nNsABPkqOxOhNqNaa2IaOUYcUR9gGyWc72MdBw6zbcpgdzvD/vXFdo6XKyP9r18VJIi7ekHPDCjyO1dOQ6DEH88IIlVRH82uja3t4EGq0oSqGWzZ8Umvqyqg7R6Tl/2fKwwYM1KGcrwWXRL6jUiBof/0JoH+Jk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766052355; c=relaxed/simple; bh=38J5dHQXZp/+qENU4+tUaRpUB7B0B4JUJb7GmWGi4S4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uO12xFEnwPaYboJAkSlDOH+k3hg8n2XlgjCPrPacFZj8ZEYyyvXnMEnb9zDzLQ7cvTvmmRqOQ6TWY+0dPwGFoZ/vnvMIx27mq0ScNGyeAA2Q5Hmac40+4IL+K+GCnaHNxWZqEd+n8CRJcVmD+UlD9l7d9NWKruL3UrFYbQeOQag= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9D982339; Thu, 18 Dec 2025 02:05:45 -0800 (PST) Received: from e123572-lin.arm.com (e123572-lin.cambridge.arm.com [10.1.194.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1B72E3F73F; Thu, 18 Dec 2025 02:05:51 -0800 (PST) From: Kevin Brodsky To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Kevin Brodsky Subject: [PATCH] sparc/mm: export symbols for lazy_mmu_mode KUnit tests Date: Thu, 18 Dec 2025 10:05:40 +0000 Message-ID: <20251218100541.2667405-1-kevin.brodsky@arm.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251216201403.4647a4f9861d3122ee9e90d7@linux-foundation.org> References: <20251216201403.4647a4f9861d3122ee9e90d7@linux-foundation.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Upcoming KUnit tests will call lazy_mmu_mode_{enable,disable}. These tests may be built as a module, and because of inlining this means that arch_{enter,flush,leave}_lazy_mmu_mode need to be exported. Signed-off-by: Kevin Brodsky Acked-by: Andreas Larsson --- The CI reports that sparc needs pretty much the same time treatment as powerpc... Here's another patch to take care of that. Andrew, could you please add it after the powerpc one? At this point it's probably best to remove the comment above MODULE_IMPORT_NS() in mm/tests/lazy_mmu_mode_kunit.c. Thank you and sorry for the noise! --- arch/sparc/mm/tlb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/sparc/mm/tlb.c b/arch/sparc/mm/tlb.c index 3a852071d260..6d9dd5eb1328 100644 --- a/arch/sparc/mm/tlb.c +++ b/arch/sparc/mm/tlb.c @@ -11,6 +11,8 @@ #include #include =20 +#include + #include #include #include @@ -54,6 +56,8 @@ void arch_enter_lazy_mmu_mode(void) { preempt_disable(); } +/* For lazy_mmu_mode KUnit tests */ +EXPORT_SYMBOL_IF_KUNIT(arch_enter_lazy_mmu_mode); =20 void arch_flush_lazy_mmu_mode(void) { @@ -62,12 +66,14 @@ void arch_flush_lazy_mmu_mode(void) if (tb->tlb_nr) flush_tlb_pending(); } +EXPORT_SYMBOL_IF_KUNIT(arch_flush_lazy_mmu_mode); =20 void arch_leave_lazy_mmu_mode(void) { arch_flush_lazy_mmu_mode(); preempt_enable(); } +EXPORT_SYMBOL_IF_KUNIT(arch_leave_lazy_mmu_mode); =20 static void tlb_batch_add_one(struct mm_struct *mm, unsigned long vaddr, bool exec, unsigned int hugepage_shift) base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8 --=20 2.51.2