summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorPetr Malat <oss@malat.biz>2024-12-10 01:06:04 +0100
committerAndrew Morton <akpm@linux-foundation.org>2024-12-18 19:04:43 -0800
commit31c5629920b82ddf66059f20f79be2bc00c4197b (patch)
tree811d1250cbdda9a97dbca04cae7be1e47b668a5b /mm
parent42c4e4b20d9c4651903c4afc53a4ff18b7451b3e (diff)
downloadlinux-stable-31c5629920b82ddf66059f20f79be2bc00c4197b.tar.gz
linux-stable-31c5629920b82ddf66059f20f79be2bc00c4197b.tar.bz2
linux-stable-31c5629920b82ddf66059f20f79be2bc00c4197b.zip
mm: add RCU annotation to pte_offset_map(_lock)
RCU lock is taken by ___pte_offset_map() unless it returns NULL. Add this information to its inline callers to avoid sparse warning about context imbalance in pte_unmap(). Link: https://lkml.kernel.org/r/20241210000604.700710-1-oss@malat.biz Signed-off-by: Petr Malat <oss@malat.biz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/pgtable-generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/pgtable-generic.c b/mm/pgtable-generic.c
index 5297dcc38c37..5a882f2b10f9 100644
--- a/mm/pgtable-generic.c
+++ b/mm/pgtable-generic.c
@@ -279,7 +279,7 @@ static unsigned long pmdp_get_lockless_start(void) { return 0; }
static void pmdp_get_lockless_end(unsigned long irqflags) { }
#endif
-pte_t *__pte_offset_map(pmd_t *pmd, unsigned long addr, pmd_t *pmdvalp)
+pte_t *___pte_offset_map(pmd_t *pmd, unsigned long addr, pmd_t *pmdvalp)
{
unsigned long irqflags;
pmd_t pmdval;