aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/memory.c')
-rw-r--r--drivers/base/memory.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index e0aa7f9abb36..92459d6f12be 100644
--- a/drivers/base/memory.c
+++ b/drivers/base/memory.c
@@ -723,7 +723,6 @@ out:
723 return ret; 723 return ret;
724} 724}
725 725
726#ifdef CONFIG_MEMORY_HOTREMOVE
727static void 726static void
728unregister_memory(struct memory_block *memory) 727unregister_memory(struct memory_block *memory)
729{ 728{
@@ -762,7 +761,6 @@ void unregister_memory_section(struct mem_section *section)
762out_unlock: 761out_unlock:
763 mutex_unlock(&mem_sysfs_mutex); 762 mutex_unlock(&mem_sysfs_mutex);
764} 763}
765#endif /* CONFIG_MEMORY_HOTREMOVE */
766 764
767/* return true if the memory block is offlined, otherwise, return false */ 765/* return true if the memory block is offlined, otherwise, return false */
768bool is_memblock_offlined(struct memory_block *mem) 766bool is_memblock_offlined(struct memory_block *mem)