The patch titled Subject: memory: remove unused register_hotmemory_notifier() has been added to the -mm mm-unstable branch. Its filename is memory-remove-unused-register_hotmemory_notifier.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/memory-remove-unused-register_hotmemory_notifier.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Liu Shixin <liushixin2@xxxxxxxxxx> Subject: memory: remove unused register_hotmemory_notifier() Date: Fri, 23 Sep 2022 11:33:46 +0800 Remove unused register_hotmemory_notifier(). Link: https://lkml.kernel.org/r/20220923033347.3935160-8-liushixin2@xxxxxxxxxx Signed-off-by: Liu Shixin <liushixin2@xxxxxxxxxx> Reviewed-by: David Hildenbrand <david@xxxxxxxxxx> Cc: Christoph Lameter <cl@xxxxxxxxx> Cc: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx> Cc: Waiman Long <longman@xxxxxxxxxx> Cc: zefan li <lizefan.x@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/memory.h | 6 ------ 1 file changed, 6 deletions(-) --- a/include/linux/memory.h~memory-remove-unused-register_hotmemory_notifier +++ a/include/linux/memory.h @@ -19,7 +19,6 @@ #include <linux/node.h> #include <linux/compiler.h> #include <linux/mutex.h> -#include <linux/notifier.h> #define MIN_MEMORY_BLOCK_SIZE (1UL << SECTION_SIZE_BITS) @@ -136,9 +135,6 @@ static inline int hotplug_memory_notifie { return 0; } -/* These aren't inline functions due to a GCC bug. */ -#define register_hotmemory_notifier(nb) ({ (void)(nb); 0; }) -#define unregister_hotmemory_notifier(nb) ({ (void)(nb); }) #else /* CONFIG_MEMORY_HOTPLUG */ extern int register_memory_notifier(struct notifier_block *nb); extern void unregister_memory_notifier(struct notifier_block *nb); @@ -166,8 +162,6 @@ int walk_dynamic_memory_groups(int nid, { .notifier_call = fn, .priority = pri };\ register_memory_notifier(&fn##_mem_nb); \ }) -#define register_hotmemory_notifier(nb) register_memory_notifier(nb) -#define unregister_hotmemory_notifier(nb) unregister_memory_notifier(nb) #ifdef CONFIG_NUMA void memory_block_add_nid(struct memory_block *mem, int nid, _ Patches currently in -mm which might be from liushixin2@xxxxxxxxxx are cgroup-cpuset-use-hotplug_memory_notifier-directly.patch fs-proc-kcorec-use-hotplug_memory_notifier-directly.patch mm-slubc-use-hotplug_memory_notifier-directly.patch mm-mmap-use-hotplug_memory_notifier-directly.patch mm-mm_initc-use-hotplug_memory_notifier-directly.patch acpi-hmat-use-hotplug_memory_notifier-directly.patch memory-remove-unused-register_hotmemory_notifier.patch memory-move-hotplug-memory-notifier-priority-to-same-file-for-easy-sorting.patch