]> err.no Git - linux-2.6/blobdiff - include/linux/memory_hotplug.h
spi: bugfix spi_add_device() with duplicate chipselects
[linux-2.6] / include / linux / memory_hotplug.h
index 3628e5088f6419614a15e29be5ec71def3869c4f..763ba81fc0f0a5c6adcb623501ebed6c28200e58 100644 (file)
@@ -199,6 +199,18 @@ extern int walk_memory_resource(unsigned long start_pfn,
                        unsigned long nr_pages, void *arg,
                        int (*func)(unsigned long, unsigned long, void *));
 
+#ifdef CONFIG_MEMORY_HOTREMOVE
+
+extern int is_mem_section_removable(unsigned long pfn, unsigned long nr_pages);
+
+#else
+static inline int is_mem_section_removable(unsigned long pfn,
+                                       unsigned long nr_pages)
+{
+       return 0;
+}
+#endif /* CONFIG_MEMORY_HOTREMOVE */
+
 extern int add_memory(int nid, u64 start, u64 size);
 extern int arch_add_memory(int nid, u64 start, u64 size);
 extern int remove_memory(u64 start, u64 size);