]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/thp: drop follow_devmap_pmd() default stub
authorAnshuman Khandual <anshuman.khandual@arm.com>
Mon, 29 Sep 2025 10:46:43 +0000 (11:46 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 1 Oct 2025 22:58:45 +0000 (15:58 -0700)
follow_devmap_pmd() has already been dropped by the commit fd2825b0760a
("mm/gup: remove pXX_devmap usage from get_user_pages()").  The fallback
stub in the header which is now redundant, can be dropped off as well.

Link: https://lkml.kernel.org/r/20250929104643.1100421-1-anshuman.khandual@arm.com
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/huge_mm.h

index f327d62fc9852d3cf717e633ed9b39deecfa0f20..e3ed008a076acd866fb97fe55b6073fa9ea7cc42 100644 (file)
@@ -691,12 +691,6 @@ static inline void mm_put_huge_zero_folio(struct mm_struct *mm)
        return;
 }
 
-static inline struct page *follow_devmap_pmd(struct vm_area_struct *vma,
-       unsigned long addr, pmd_t *pmd, int flags, struct dev_pagemap **pgmap)
-{
-       return NULL;
-}
-
 static inline bool thp_migration_supported(void)
 {
        return false;