diff options
Diffstat (limited to 'drivers/base/memory.c')
-rw-r--r-- | drivers/base/memory.c | 2 |
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 | ||
727 | static void | 726 | static void |
728 | unregister_memory(struct memory_block *memory) | 727 | unregister_memory(struct memory_block *memory) |
729 | { | 728 | { |
@@ -762,7 +761,6 @@ void unregister_memory_section(struct mem_section *section) | |||
762 | out_unlock: | 761 | out_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 */ |
768 | bool is_memblock_offlined(struct memory_block *mem) | 766 | bool is_memblock_offlined(struct memory_block *mem) |