sparc32-remove-custom-definition-of-mk_pte.patch removed from -mm tree
The quilt patch titled
Subject: sparc32: remove custom definition of mk_pte()
has been removed from the -mm tree. Its filename was
sparc32-remove-custom-definition-of-mk_pte.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <[email protected]>
Subject: sparc32: remove custom definition of mk_pte()
Date: Wed, 2 Apr 2025 19:16:57 +0100
Instead of defining pfn_pte() in terms of mk_pte(), make pfn_pte() the base implementation. That lets us use the generic definition of mk_pte().
Signed-off-by Matthew Wilcox (Oracle) <[email protected]>
Cc Zi Yan <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Andreas Larsson <[email protected]>
Cc Alexander Gordeev <[email protected]>
Cc Anton Ivanov <[email protected]>
Cc Dave Hansen <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Johannes Berg <[email protected]>
Cc Muchun Song <[email protected]>
Cc Richard Weinberger <[email protected]>
Cc <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/sparc/include/asm/pgtable_32.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-)
arch/sparc/include/asm/pgtable_32.h renamed from arch/sparc/include/asm/pgtable_32.h~sparc32-remove-custom-definition-of-mk_pte +5 -10
@@ -255,7 +255,11 @@ static inline pte_t pte_mkyoung(pte_t pt }#define PFN_PTE_SHIFT (PAGE_SHIFT - 4) -#define pfn_pte (pfn, prot) mk_pte(pfn_to_page(pfn), prot) + +static inline pte_t pfn_pte (unsigned long pfn,pgprot_t pgprot) +{ +return __pte ((pfn <<PFN_PTE_SHIFT ) |pgprot_val (pgprot)); +}static inline unsigned long pte_pfn (pte_t pte) {
@@ -272,15 +276,6 @@ static inline unsigned long pte_pfn(pte_#define pte_page (pte) pfn_to_page(pte_pfn(pte)) -/* -* Conversion functions: convert a page and protection to a page entry, -* and a page entry and page directory to the page they refer to. -*/ -static inline pte_t mk_pte (struct page *page,pgprot_t pgprot) -{ -return __pte ((page_to_pfn (page) << (PAGE_SHIFT -4 )) |pgprot_val (pgprot)); -} -static inline pte_t mk_pte_phys (unsigned long page,pgprot_t pgprot) {return __pte (((page) >>4 ) |pgprot_val (pgprot));
_
Patches currently in -mm which might be from [email protected] are