From nobody Sun Feb 8 15:53:10 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 772F9352FAA for ; Wed, 17 Dec 2025 16:38:19 +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=1765989502; cv=none; b=DUxaeXVgv5xTa9iOwvVVQ4BnoXUPy/w/A0Sz+QnckVYNmd8mQQYuJrbRfRcVgd4Lqns/TiFAfW0xQ+g4EmDR1atH8Qi1Fm0P4npGTZcleQ1YlK9Y+m7Ztsy2N9z0v3J5syAHbw2FUyHkwmfR+wweWPBeVlRUX1oYNBnMIU3TJT0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765989502; c=relaxed/simple; bh=mljA0KVU5fq0U8M82xA1z2ZuFqXkI023Vg8KrWooI98=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WMu0JHC454nKOTfcFKufdGPuGz7lTx3nfCvnqIH2//uq4ty0uYKa/EWO0uiLlCYQ7pdhdfFNnL9uwluN2EJpKTJwZ9F9D4/cf57ipKbNRePZu6ZhUQAclzauAXiZXyAz6hBGMNJngMELDi19U2cCH2RlFgwvHLPMiWM+5yLZYHk= 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 99F1EFEC; Wed, 17 Dec 2025 08:38:11 -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 806BA3F5CA; Wed, 17 Dec 2025 08:38:17 -0800 (PST) From: Kevin Brodsky To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Ryan Roberts , Ritesh Harjani , linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, Kevin Brodsky Subject: [PATCH] powerpc/mm: export symbols for lazy_mmu_mode KUnit tests Date: Wed, 17 Dec 2025 16:38:11 +0000 Message-ID: <20251217163812.2633648-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 symbols referenced by arch_{enter,leave}_lazy_mmu_mode need to be exported. Suggested-by: Ryan Roberts Suggested-by: Ritesh Harjani (IBM) Signed-off-by: Kevin Brodsky --- Andrew, please add this patch just before the last patch in the series ("mm: Add basic tests for lazy_mmu"). Thanks! --- arch/powerpc/mm/book3s64/hash_tlb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/mm/book3s64/hash_tlb.c b/arch/powerpc/mm/book3s64= /hash_tlb.c index fbdeb8981ae7..9e622519a423 100644 --- a/arch/powerpc/mm/book3s64/hash_tlb.c +++ b/arch/powerpc/mm/book3s64/hash_tlb.c @@ -30,6 +30,7 @@ #include =20 DEFINE_PER_CPU(struct ppc64_tlb_batch, ppc64_tlb_batch); +EXPORT_SYMBOL_IF_KUNIT(ppc64_tlb_batch); /* For lazy_mmu_mode KUnit tests = */ =20 /* * A linux PTE was changed and the corresponding hash table entry @@ -154,6 +155,7 @@ void __flush_tlb_pending(struct ppc64_tlb_batch *batch) flush_hash_range(i, local); batch->index =3D 0; } +EXPORT_SYMBOL_IF_KUNIT(__flush_tlb_pending); /* For lazy_mmu_mode KUnit te= sts */ =20 void hash__tlb_flush(struct mmu_gather *tlb) { base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8 --=20 2.51.2