From: Miaohe Lin Date: Fri, 16 Sep 2022 07:22:48 +0000 (+0800) Subject: mm: remove obsolete pgdat_is_empty() X-Git-Tag: baikal/aarch64/sdk6.1~2877^2~42 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=a4cf7bcfe3ccd85677b413965744e72dfc31b036;p=kernel.git mm: remove obsolete pgdat_is_empty() There's no caller. Remove it. Link: https://lkml.kernel.org/r/20220916072257.9639-8-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Reviewed-by: David Hildenbrand Reviewed-by: Anshuman Khandual Reviewed-by: Oscar Salvador Cc: Matthew Wilcox Signed-off-by: Andrew Morton --- diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 3ff1e757d5aab..4c8510f26b02b 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -1241,11 +1241,6 @@ static inline unsigned long pgdat_end_pfn(pg_data_t *pgdat) return pgdat->node_start_pfn + pgdat->node_spanned_pages; } -static inline bool pgdat_is_empty(pg_data_t *pgdat) -{ - return !pgdat->node_start_pfn && !pgdat->node_spanned_pages; -} - #include void build_all_zonelists(pg_data_t *pgdat);