Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751297AbdLZLh7 (ORCPT ); Tue, 26 Dec 2017 06:37:59 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:39682 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750776AbdLZLh5 (ORCPT ); Tue, 26 Dec 2017 06:37:57 -0500 X-Google-Smtp-Source: ACJfBotNirvLRKEEp3hjKRDvDkR5dLzZkABxfFfFogvMbdP1r3wmjB6D43KdpULgeKLtcLNLdCrwww== From: Mathieu Malaterre Cc: Mathieu Malaterre , Ralf Baechle , Marcin Nowakowski , David Daney , Goran Ferenc , Miodrag Dinic , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] MIPS: add declaration for function `memory_region_available` Date: Tue, 26 Dec 2017 12:37:13 +0100 Message-Id: <20171226113717.15074-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 983 Lines: 25 Fix non-fatal warning: 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 --- arch/mips/include/asm/bootinfo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/include/asm/bootinfo.h b/arch/mips/include/asm/bootinfo.h index e26a093bb17a..32e3c9a2c5a0 100644 --- a/arch/mips/include/asm/bootinfo.h +++ b/arch/mips/include/asm/bootinfo.h @@ -108,6 +108,7 @@ extern struct boot_mem_map boot_mem_map; extern void add_memory_region(phys_addr_t start, phys_addr_t size, long type); extern void detect_memory_region(phys_addr_t start, phys_addr_t sz_min, phys_addr_t sz_max); +extern bool memory_region_available(phys_addr_t start, phys_addr_t size); extern void prom_init(void); extern void prom_free_prom_memory(void); -- 2.11.0