diff options
Diffstat (limited to 'include/linux/memory_hotplug.h')
-rw-r--r-- | include/linux/memory_hotplug.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h index ae892eef8b82..988fde33cd7f 100644 --- a/include/linux/memory_hotplug.h +++ b/include/linux/memory_hotplug.h | |||
@@ -324,7 +324,7 @@ static inline void pgdat_resize_init(struct pglist_data *pgdat) {} | |||
324 | extern bool is_mem_section_removable(unsigned long pfn, unsigned long nr_pages); | 324 | extern bool is_mem_section_removable(unsigned long pfn, unsigned long nr_pages); |
325 | extern void try_offline_node(int nid); | 325 | extern void try_offline_node(int nid); |
326 | extern int offline_pages(unsigned long start_pfn, unsigned long nr_pages); | 326 | extern int offline_pages(unsigned long start_pfn, unsigned long nr_pages); |
327 | extern void remove_memory(int nid, u64 start, u64 size); | 327 | extern int remove_memory(int nid, u64 start, u64 size); |
328 | extern void __remove_memory(int nid, u64 start, u64 size); | 328 | extern void __remove_memory(int nid, u64 start, u64 size); |
329 | 329 | ||
330 | #else | 330 | #else |
@@ -341,7 +341,11 @@ static inline int offline_pages(unsigned long start_pfn, unsigned long nr_pages) | |||
341 | return -EINVAL; | 341 | return -EINVAL; |
342 | } | 342 | } |
343 | 343 | ||
344 | static inline void remove_memory(int nid, u64 start, u64 size) {} | 344 | static inline int remove_memory(int nid, u64 start, u64 size) |
345 | { | ||
346 | return -EBUSY; | ||
347 | } | ||
348 | |||
345 | static inline void __remove_memory(int nid, u64 start, u64 size) {} | 349 | static inline void __remove_memory(int nid, u64 start, u64 size) {} |
346 | #endif /* CONFIG_MEMORY_HOTREMOVE */ | 350 | #endif /* CONFIG_MEMORY_HOTREMOVE */ |
347 | 351 | ||