The only call site is in hugetlb_sysfs_init() and only matters with NUMA. Drop the empty !NUMA stub and move the call under the CONFIG_NUMA ifdef instead, keeping all NUMA-only setup together. Signed-off-by: Enze Li --- mm/hugetlb_sysfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/hugetlb_sysfs.c b/mm/hugetlb_sysfs.c index 326a54b4d991..de439b3b7f01 100644 --- a/mm/hugetlb_sysfs.c +++ b/mm/hugetlb_sysfs.c @@ -475,8 +475,6 @@ static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp) return NULL; } -static void hugetlb_register_all_nodes(void) { } - #endif void __init hugetlb_sysfs_init(void) @@ -497,6 +495,6 @@ void __init hugetlb_sysfs_init(void) #ifdef CONFIG_NUMA hugetlb_sysfs_initialized = true; -#endif hugetlb_register_all_nodes(); +#endif } base-commit: 8b38ed9ab5b09c8ba168cbcc49524e9b380ee5c4 -- 2.55.0