diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2022-08-15 19:10:17 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-09-11 20:25:56 -0700 |
commit | fb70c4878d6b3001ef40fa39432a38d8cabdcbf7 (patch) | |
tree | dd24144a1529bbae05f5382b61703984b362ca16 /include/linux/mm.h | |
parent | 0192445cb2f7ed1cd7a95a0fc8c7645480baba25 (diff) | |
download | lwn-fb70c4878d6b3001ef40fa39432a38d8cabdcbf7.tar.gz lwn-fb70c4878d6b3001ef40fa39432a38d8cabdcbf7.zip |
mm: kill find_min_pfn_with_active_regions()
find_min_pfn_with_active_regions() is only called from free_area_init().
Open-code the PHYS_PFN(memblock_start_of_DRAM()) into free_area_init(),
and kill find_min_pfn_with_active_regions().
Link: https://lkml.kernel.org/r/20220815111017.39341-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 27839b158ca4..e98ef2cb1176 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2520,7 +2520,6 @@ extern unsigned long absent_pages_in_range(unsigned long start_pfn, unsigned long end_pfn); extern void get_pfn_range_for_nid(unsigned int nid, unsigned long *start_pfn, unsigned long *end_pfn); -extern unsigned long find_min_pfn_with_active_regions(void); #ifndef CONFIG_NUMA static inline int early_pfn_to_nid(unsigned long pfn) |