Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm, memory_hotplug: remove obsolete generic_free_nodedata()

Commit 390511e1476e ("mm, memory_hotplug: drop arch_free_nodedata") drops
the last caller of generic_free_nodedata(). Remove it too.

Link: https://lkml.kernel.org/r/20220916072257.9639-11-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Miaohe Lin and committed by
Andrew Morton
f774a6a6 c0352904

-8
-8
include/linux/memory_hotplug.h
··· 43 43 ({ \ 44 44 memblock_alloc(sizeof(*pgdat), SMP_CACHE_BYTES); \ 45 45 }) 46 - /* 47 - * This definition is just for error path in node hotadd. 48 - * For node hotremove, we have to replace this. 49 - */ 50 - #define generic_free_nodedata(pgdat) kfree(pgdat) 51 46 52 47 extern pg_data_t *node_data[]; 53 48 static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) ··· 57 62 { 58 63 BUG(); 59 64 return NULL; 60 - } 61 - static inline void generic_free_nodedata(pg_data_t *pgdat) 62 - { 63 65 } 64 66 static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) 65 67 {