History

mm/memory_hotplug: make unregister_memory_section() never fail

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.

David Hildenbrand committed 7 years ago

Commit cb7b3a31 parent d9eb1413 files · +7 −15Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/memory.h+1−1
@@ -113,7 +113,7 @@ extern int register_memory_isolate_notifier(struct notifier_block *nb); · 112 unmodified lines
113113 extern void unregister_memory_isolate_notifier(struct notifier_block *nb);
114114 int hotplug_memory_register(int nid, struct mem_section *section);
115115 #ifdef CONFIG_MEMORY_HOTREMOVE
116−extern int unregister_memory_section(struct mem_section *);
116+extern void unregister_memory_section(struct mem_section *);
117117 #endif
118118 extern int memory_dev_init(void);
119119 extern int memory_notify(unsigned long val, void *v);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t