FAILED: Patch "mm/highmem: fix __kmap_to_page() build error" failed to apply to 6.1-stable tree
Subsystems (3)
Sasha Levin
maintainerThe patch below does not apply to the 6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 94350fe6cad77b46c3dcb8c96543bef7647efbc0 Mon Sep 17 00:00:00 2001
From: William Tambe <[email protected]>
Date: Thu, 11 Dec 2025 12:38:19 -0800
Subject: [PATCH] mm/highmem: fix __kmap_to_page() build error
This changes fixes following build error which is a miss from ef6e06b2ef87 ("highmem: fix kmap_to_page() for kmap_local_page() addresses").
mm/highmem.c:184:66: error: 'pteval' undeclared (first use in this function); did you mean 'pte_val'?
184 | idx = arch_kmap_local_map_idx(i, pte_pfn(pteval));
In __kmap_to_page(), pteval is used but does not exist in the function.
(akpm: affects xtensa only)
--- mm/highmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/highmem.c +2 -1
@@ -180,12 +180,13 @@ struct page *__kmap_to_page(void *vaddr)for (i =0 ; i < kctrl->idx; i++) {unsigned long base_addr;int idx; +pte_t pteval = kctrl->pteval[i]; idx =arch_kmap_local_map_idx (i,pte_pfn (pteval)); base_addr =__fix_to_virt (FIX_KMAP_BEGIN + idx);if (base_addr == base) -return pte_page (kctrl->pteval[i]); +return pte_page (pteval); } }
Signature · 1 line
2.51.0