mirror of
https://github.com/torvalds/linux
synced 2024-10-17 00:39:37 +00:00
97e45d469e
kexec (PPC64) code calls memory_hotplug_max(). Add the header
declaration for it from <asm/mmzone.h>. Using <linux/mmzone.h> does not
work since the #include for <asm/mmzone.h> depends on CONFIG_NUMA=y,
which is not always set.
Fixes this build error/warning:
arch/powerpc/kexec/file_load_64.c: In function 'kexec_extra_fdt_size_ppc64':
arch/powerpc/kexec/file_load_64.c:993:33: error: implicit declaration of function 'memory_hotplug_max'
993 | usm_entries = ((memory_hotplug_max() / drmem_lmb_size()) +
| ^~~~~~~~~~~~~~~~~~
Fixes:
|
||
---|---|---|
.. | ||
core.c | ||
core_32.c | ||
core_64.c | ||
crash.c | ||
elf_64.c | ||
file_load.c | ||
file_load_64.c | ||
Makefile | ||
ranges.c | ||
relocate_32.S |