Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751458AbeABSwk (ORCPT + 1 other); Tue, 2 Jan 2018 13:52:40 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:46432 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141AbeABSwj (ORCPT ); Tue, 2 Jan 2018 13:52:39 -0500 X-Google-Smtp-Source: ACJfBoudRZ59Acc5pr50dO6JXCAZd6WOBibwKYdyDOTpXADy9etc+eBZYjxZ3tnhZUgspK+itD1Glg== From: Mathieu Malaterre To: James Hogan Cc: Mathieu Malaterre , Ralf Baechle , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] MIPS: Make declaration for function `memory_region_available` static Date: Tue, 2 Jan 2018 19:52:21 +0100 Message-Id: <20180102185222.9111-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171226113717.15074-1-malat@debian.org> References: <20171226113717.15074-1-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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 --- v2: Prefer static declaration, clarify W=1 in commit message arch/mips/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index f19d61224c71..68db4bdd3255 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; -- 2.11.0