Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Make declaration for function `memory_region_available` static

Fix non-fatal warning during compilation using W=1:

arch/mips/kernel/setup.c:158:13: warning: no previous prototype for ‘memory_region_available’ [-Wmissing-prototypes]
bool __init memory_region_available(phys_addr_t start, phys_addr_t size)
^~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18175/
[jhogan@kernel.org: tweak whitespace]
Signed-off-by: James Hogan <jhogan@kernel.org>

authored by

Mathieu Malaterre and committed by
James Hogan
427aeea0 018eab88

+2 -1
+2 -1
arch/mips/kernel/setup.c
··· 155 155 add_memory_region(start, size, BOOT_MEM_RAM); 156 156 } 157 157 158 - bool __init memory_region_available(phys_addr_t start, phys_addr_t size) 158 + static bool __init __maybe_unused memory_region_available(phys_addr_t start, 159 + phys_addr_t size) 159 160 { 160 161 int i; 161 162 bool in_ram = false, free = true;