arm64: Fix compilation errors while enabling memory hotplug
Fix compilation errors ecountered while enabling memory hotplug caused by function prototype changes in 'commit24e6d5a59a("mm: pass the vmem_altmap to arch_add_memory and __add_pages")' 'commitda024512a1("mm: pass the vmem_altmap to arch_remove_memory and __remove_pages")' 'commit24b6d41643("mm: pass the vmem_altmap to vmemmap_free")'. The errors were caused since the prototype changes in functions vmemmap_free arch_remove_memory and arch_add_memory were not propagated to the arm64 version. Change-Id: I9933ab14d6483f8a6c8ddc7fe9b414149e9df3b7 Signed-off-by: Swathi Sridhar <swatsrid@codeaurora.org>
This commit is contained in:
committed by
Patrick Daly
parent
11ec78dc81
commit
025a7467ee
@@ -498,12 +498,12 @@ static ssize_t allocated_bytes_show(struct device *dev,
|
||||
}
|
||||
#endif
|
||||
|
||||
static DEVICE_ATTR_RO(phys_index, 0444, phys_index_show, NULL);
|
||||
static DEVICE_ATTR(phys_index, 0444, phys_index_show, NULL);
|
||||
static DEVICE_ATTR(state, 0644, show_mem_state, store_mem_state);
|
||||
static DEVICE_ATTR(phys_device, 0444, show_phys_device, NULL);
|
||||
static DEVICE_ATTR(removable, 0444, show_mem_removable, NULL);
|
||||
#ifdef CONFIG_MEMORY_HOTPLUG
|
||||
static DEVICE_ATTR_RO(allocated_bytes, 0444, allocated_bytes_show, NULL);
|
||||
static DEVICE_ATTR(allocated_bytes, 0444, allocated_bytes_show, NULL);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user