From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0D3CC433E2 for ; Tue, 19 May 2020 17:45:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A16F120708 for ; Tue, 19 May 2020 17:45:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="K6jQ2xN3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A16F120708 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 16CF180007; Tue, 19 May 2020 13:45:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 11E95900002; Tue, 19 May 2020 13:45:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0330D80007; Tue, 19 May 2020 13:45:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0103.hostedemail.com [216.40.44.103]) by kanga.kvack.org (Postfix) with ESMTP id DD788900002 for ; Tue, 19 May 2020 13:45:14 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 9651F582B for ; Tue, 19 May 2020 17:45:14 +0000 (UTC) X-FDA: 76834194948.29.horn15_2db873e22275c X-HE-Tag: horn15_2db873e22275c X-Filterd-Recvd-Size: 4637 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf45.hostedemail.com (Postfix) with ESMTP for ; Tue, 19 May 2020 17:45:14 +0000 (UTC) Received: from kernel.org (unknown [87.71.47.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7358220708; Tue, 19 May 2020 17:45:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589910313; bh=lW+0YGVkho2+d7wUltMk9bb0kR87t+s8DMNHCK9MLdo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K6jQ2xN3xnDje07nyMgeOa7dKtmJ830NAaKoPtihNDY7ExvpytF2wBuZHoB6nCHD2 pH67Ye/tJT0bi9a+VtJfcV0vZTHjMe1dEe+ao9U2x3RRozPdavztIpZwIIjmDtV8nO fXk1FdrwZJ4N5k5CX51f++24SiWjDmt+D/JzCQoE= Date: Tue, 19 May 2020 20:45:01 +0300 From: Mike Rapoport To: kbuild test robot Cc: kbuild-all@lists.01.org, Johannes Weiner , Andrew Morton , Linux Memory Management List Subject: Re: [hnaz-linux-mm:master 177/523] arch/arc/mm/init.c:80:6: warning: no previous prototype for 'arch_has_descending_max_zone_pfns' Message-ID: <20200519174501.GE1118872@kernel.org> References: <202005191627.50HwKMUW%lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202005191627.50HwKMUW%lkp@intel.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, May 19, 2020 at 04:32:29PM +0800, kbuild test robot wrote: > tree: https://github.com/hnaz/linux-mm master > head: 2bbf0589bfeb27800c730b76eacf34528eee5418 > commit: 3ae9a28a04fa372644c181c9419b3312efe55d77 [177/523] mm: free_area_init: allow defining max_zone_pfn in descending order > config: arc-defconfig (attached as .config) > compiler: arc-elf-gcc (GCC) 9.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 3ae9a28a04fa372644c181c9419b3312efe55d77 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kbuild test robot > > All warnings (new ones prefixed by >>, old ones prefixed by <<): > > arch/arc/mm/init.c:39:13: warning: no previous prototype for 'arc_get_mem_sz' [-Wmissing-prototypes] > 39 | long __init arc_get_mem_sz(void) > | ^~~~~~~~~~~~~~ > >> arch/arc/mm/init.c:80:6: warning: no previous prototype for 'arch_has_descending_max_zone_pfns' [-Wmissing-prototypes] > 80 | bool arch_has_descending_max_zone_pfns(void) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > arch/arc/mm/init.c:91:13: warning: no previous prototype for 'setup_arch_memory' [-Wmissing-prototypes] > 91 | void __init setup_arch_memory(void) > | ^~~~~~~~~~~~~~~~~ > > vim +/arch_has_descending_max_zone_pfns +80 arch/arc/mm/init.c > > 79 > > 80 bool arch_has_descending_max_zone_pfns(void) > 81 { > 82 return true; > 83 } > 84 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Here is the fix. >From f1cfbc50f1eee57c6c648e08dccaf5f0eb699578 Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Tue, 19 May 2020 20:40:25 +0300 Subject: [PATCH] mm: add forward declaration of arch_has_descending_max_zone_pfns() to silence gcc warning reported by kbuild test robot: >> arch/arc/mm/init.c:80:6: warning: no previous prototype for 'arch_has_descending_max_zone_pfns' [-Wmissing-prototypes] 80 | bool arch_has_descending_max_zone_pfns(void) Reported-by: kbuild test robot Signed-off-by: Mike Rapoport --- include/linux/mm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index d184c47079da..0c3d8187cff9 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2351,6 +2351,7 @@ static inline unsigned long get_num_physpages(void) * sparse_memory_present_with_active_regions() calls memory_present() for * each range when SPARSEMEM is enabled. */ +bool arch_has_descending_max_zone_pfns(void); void free_area_init(unsigned long *max_zone_pfn); unsigned long node_map_pfn_alignment(void); unsigned long __absent_pages_in_range(int nid, unsigned long start_pfn, -- 2.26.2 -- Sincerely yours, Mike.