]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
loongarch/mm: drop vmemmap_check_pmd helper and use generic code
authorMuchun Song <songmuchun@bytedance.com>
Mon, 1 Jun 2026 08:48:43 +0000 (16:48 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 9 Jun 2026 01:21:30 +0000 (18:21 -0700)
The generic implementations now suffice; remove the loongarch copy.

Link: https://lore.kernel.org/20260601084845.3792171-5-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Oscar Salvador (SUSE) <osalvador@kernel.org>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Alexandre Ghiti <alex@ghiti.fr>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Lorenzo Stoakes <ljs@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: WANG Xuerui <kernel@xen0n.name>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/loongarch/mm/init.c

index 687980b6e91f05159552636f3f0513ad81c66490..3407030f3e7a2a6dd10124cddf227fa613200bbc 100644 (file)
@@ -140,17 +140,6 @@ void __meminit vmemmap_set_pmd(pmd_t *pmd, void *p, int node,
        set_pmd_at(&init_mm, addr, pmd, entry);
 }
 
-int __meminit vmemmap_check_pmd(pmd_t *pmd, int node,
-                               unsigned long addr, unsigned long next)
-{
-       int huge = pmd_val(pmdp_get(pmd)) & _PAGE_HUGE;
-
-       if (huge)
-               vmemmap_verify((pte_t *)pmd, node, addr, next);
-
-       return huge;
-}
-
 int __meminit vmemmap_populate(unsigned long start, unsigned long end,
                               int node, struct vmem_altmap *altmap)
 {