mm-change-type-of-parameter-for-memory_notify.patch removed from -mm tree
The quilt patch titled
Subject: mm: change type of parameter for memory_notify
has been removed from the -mm tree. Its filename was
mm-change-type-of-parameter-for-memory_notify.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Israel Batista <[email protected]>
Subject: mm: change type of parameter for memory_notify
Date: Wed, 29 Oct 2025 19:56:32 +0000 (UTC)
memory_notify() is responsible for sending events related to memory hotplugging to a notification queue. Since all the events must match one of the values from the enum memory_block_state, it is appropriate to change the function parameter type to make this condition explicit at compile time.
---
drivers/base/memory.c | 4 ++-- include/linux/memory.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/base/memory.c renamed from drivers/base/memory.c~mm-change-type-of-parameter-for-memory_notify +2 -2
@@ -204,9 +204,9 @@ static ssize_t state_show(struct devicereturn sysfs_emit (buf,"%s\n" , output); } -int memory_notify (unsigned long val,void *v) +int memory_notify (enum memory_block_state state,void *v) { -return blocking_notifier_call_chain (&memory_chain, val, v); +return blocking_notifier_call_chain (&memory_chain, state, v); }#if defined(CONFIG_MEMORY_FAILURE ) && defined(CONFIG_MEMORY_HOTPLUG )
include/linux/memory.h renamed from include/linux/memory.h~mm-change-type-of-parameter-for-memory_notify +2 -2
@@ -141,7 +141,7 @@ static inline int register_memory_notifistatic inline void unregister_memory_notifier (struct notifier_block *nb) { } -static inline int memory_notify (unsigned long val,void *v) +static inline int memory_notify (enum memory_block_state state,void *v) {return 0 ; }
@@ -165,7 +165,7 @@ int create_memory_block_devices(unsigned struct memory_group *group);void remove_memory_block_devices (unsigned long start,unsigned long size);extern void memory_dev_init (void ); -extern int memory_notify (unsigned long val,void *v); +extern int memory_notify (enum memory_block_state state,void *v);extern struct memory_block *find_memory_block (unsigned long section_nr);typedef int (*walk_memory_blocks_func_t )(struct memory_block *,void *); extern int walk_memory_blocks(unsigned long start, unsigned long size,
_
Patches currently in -mm which might be from [email protected] are