Skip to contentSkip to conversation

memory_hotplug: remove duplicate declaration of offline_pages()

PATCH David Hildenbrand 1 participant 1 message Dec 5, 2018 1 message not in the archive Memory management

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

David Hildenbrand

author Reviewed-by
#1 lore raw
Quoted 15 lines · Wei Yang

Function offline_pages() is already declared in this file.

Just remove the duplicated one.

---
 include/linux/memory_hotplug.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/memory_hotplug.h +0 -0
index b81cc29482d8..8cf7f4a18e44 100644

include/linux/memory_hotplug.h extern int arch_add_memory(int nid, u64 start, u64 size, · line 336

Quoted 7 lines
include/linux/memory_hotplug.h +0 -1
@@ -331,7 +331,6 @@ extern int arch_add_memory(int nid, u64 start, u64 size,
 		struct vmem_altmap *altmap, bool want_memblock);
 extern void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn,
 		unsigned long nr_pages, struct vmem_altmap *altmap);
-extern int offline_pages(unsigned long start_pfn, unsigned long nr_pages);
 extern bool is_memblock_offlined(struct memory_block *mem);
 extern int sparse_add_one_section(int nid, unsigned long start_pfn,
 				  struct vmem_altmap *altmap);
Signature · 3 lines
Thanks,

David / dhildenb