]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - include/linux/memory.h
mm, hotplug: avoid compiling memory hotremove functions when disabled
[mirror_ubuntu-focal-kernel.git] / include / linux / memory.h
index 0ff6598ee62f4a0e0ebaeb5e6f4fdeae4360facd..73817af8b480e026d456019ef344bb323e9697f9 100644 (file)
@@ -115,9 +115,10 @@ extern void unregister_memory_notifier(struct notifier_block *nb);
 extern int register_memory_isolate_notifier(struct notifier_block *nb);
 extern void unregister_memory_isolate_notifier(struct notifier_block *nb);
 extern int register_new_memory(int, struct mem_section *);
+#ifdef CONFIG_MEMORY_HOTREMOVE
 extern int unregister_memory_section(struct mem_section *);
+#endif
 extern int memory_dev_init(void);
-extern int remove_memory_block(unsigned long, struct mem_section *, int);
 extern int memory_notify(unsigned long val, void *v);
 extern int memory_isolate_notify(unsigned long val, void *v);
 extern struct memory_block *find_memory_block_hinted(struct mem_section *,