Failing while removing memory is mostly ignored and cannot really be handled. Let's treat errors in unregister_memory_section() in a nice way, warning, but continuing.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -113,7 +113,7 @@ extern int register_memory_isolate_notifier(struct notifier_block *nb); · 112 unmodified lines | ||
| 113 | 113 | extern void unregister_memory_isolate_notifier(struct notifier_block *nb); |
| 114 | 114 | int hotplug_memory_register(int nid, struct mem_section *section); |
| 115 | 115 | #ifdef CONFIG_MEMORY_HOTREMOVE |
| 116 | −extern int unregister_memory_section(struct mem_section *); | |
| 116 | +extern void unregister_memory_section(struct mem_section *); | |
| 117 | 117 | #endif |
| 118 | 118 | extern int memory_dev_init(void); |
| 119 | 119 | extern int memory_notify(unsigned long val, void *v); |