mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
s390/mm: make vmemmap_free() only for CONFIG_MEMORY_HOTPLUG available
Get rid of this W=1 compile warning:
arch/s390/mm/vmem.c:502:6: warning: no previous prototype for ‘vmemmap_free’ [-Wmissing-prototypes]
502 | void vmemmap_free(unsigned long start, unsigned long end,
| ^~~~~~~~~~~~
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
7bc8b8eb2b
commit
4f62c6e301
|
|
@ -499,6 +499,8 @@ int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node,
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MEMORY_HOTPLUG
|
||||
|
||||
void vmemmap_free(unsigned long start, unsigned long end,
|
||||
struct vmem_altmap *altmap)
|
||||
{
|
||||
|
|
@ -507,6 +509,8 @@ void vmemmap_free(unsigned long start, unsigned long end,
|
|||
mutex_unlock(&vmem_mutex);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void vmem_remove_mapping(unsigned long start, unsigned long size)
|
||||
{
|
||||
mutex_lock(&vmem_mutex);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user