diff options
author | Mathieu Malaterre <[email protected]> | 2018-01-02 19:52:21 +0100 |
---|---|---|
committer | James Hogan <[email protected]> | 2018-02-19 10:55:38 +0000 |
commit | 427aeea072acd7afa6ffe20fc76f887b0f8b232c (patch) | |
tree | 4ab5dd152111b5af5b9fdaa8c228bc8119245aa9 | |
parent | 018eab88efc581c977756a8b7b2eb1254cbe1c7c (diff) |
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 <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/18175/
[[email protected]: tweak whitespace]
Signed-off-by: James Hogan <[email protected]>
-rw-r--r-- | arch/mips/kernel/setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 5f8b0a9e30b3..28be8f238e77 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -155,7 +155,8 @@ void __init detect_memory_region(phys_addr_t start, phys_addr_t sz_min, phys_add add_memory_region(start, size, BOOT_MEM_RAM); } -bool __init memory_region_available(phys_addr_t start, phys_addr_t size) +static bool __init __maybe_unused memory_region_available(phys_addr_t start, + phys_addr_t size) { int i; bool in_ram = false, free = true; |