]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mm/page_alloc: make __alloc_contig_migrate_range() static
authorDavid Hildenbrand <david@redhat.com>
Tue, 3 Dec 2024 09:47:29 +0000 (10:47 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 14 Jan 2025 06:40:44 +0000 (22:40 -0800)
The single user is in page_alloc.c.

Link: https://lkml.kernel.org/r/20241203094732.200195-4-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Naveen N Rao <naveen@kernel.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/internal.h
mm/page_alloc.c

index 6f6585e98c6f9d6bc119e26a5624372f4f13a7b4..02890b29da5f6299dd8166f9ef95ffeebe974d80 100644 (file)
@@ -839,10 +839,6 @@ int
 isolate_migratepages_range(struct compact_control *cc,
                           unsigned long low_pfn, unsigned long end_pfn);
 
-int __alloc_contig_migrate_range(struct compact_control *cc,
-                                       unsigned long start, unsigned long end,
-                                       int migratetype);
-
 /* Free whole pageblock and set its migration type to MIGRATE_CMA. */
 void init_cma_reserved_pageblock(struct page *page);
 
index 98ffcd2bf153adfb1576a7562cd4cc2b31e01cdd..84067bc297402f0c85d9f6ed76b9ebcc6d5abc7a 100644 (file)
@@ -6280,9 +6280,8 @@ static void alloc_contig_dump_pages(struct list_head *page_list)
  * @migratetype: using migratetype to filter the type of migration in
  *             trace_mm_alloc_contig_migrate_range_info.
  */
-int __alloc_contig_migrate_range(struct compact_control *cc,
-                                       unsigned long start, unsigned long end,
-                                       int migratetype)
+static int __alloc_contig_migrate_range(struct compact_control *cc,
+               unsigned long start, unsigned long end, int migratetype)
 {
        /* This function is based on compact_zone() from compaction.c. */
        unsigned int nr_reclaimed;