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=-6.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 F325DC48BE5 for ; Tue, 15 Jun 2021 18:32:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9280C61209 for ; Tue, 15 Jun 2021 18:32:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9280C61209 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 117976B0036; Tue, 15 Jun 2021 14:32:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0EEE86B006C; Tue, 15 Jun 2021 14:32:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F1FD26B0072; Tue, 15 Jun 2021 14:32:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0215.hostedemail.com [216.40.44.215]) by kanga.kvack.org (Postfix) with ESMTP id C27626B0036 for ; Tue, 15 Jun 2021 14:32:16 -0400 (EDT) Received: from smtpin36.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 6BC45DB58 for ; Tue, 15 Jun 2021 18:32:16 +0000 (UTC) X-FDA: 78256803072.36.6D99C61 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf30.hostedemail.com (Postfix) with ESMTP id D7B1CE000203 for ; Tue, 15 Jun 2021 18:32:09 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id CB3C861185; Tue, 15 Jun 2021 18:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623781935; bh=MNfXbnJpr2c7JWJukKnUSs2Xf6PiaUEmZH5Gnv6YAa4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aGMJHW9Bw3K5SU2OvZCgpuBDEXZbIBQQlKPoIS/lIqvWG4cH+kMKNh9dGWa4q3m1Z 1P4zGAP7rl6e9DW1V8zRas7nQV0pl82Wjdbj0bOXCSxib7Xs2Ruqqhyn/dJNvTB6gD hGAZN+1o20SwuDC4sc+hbUKyO6iX0IT0UPaLqPPGV5SQvamiZbu2lUuYeiwfU5dvOo 7l0+W37QUI6DEJEj7pJsQh3RkF9rH0eqMizoRBhRrfkQ0k4tboKhiQhTBrk8YErWxd Ndv0D8ubGSUySVAdH5+ua7h4GkjAOYvMuc8VXuT6MmJhFesdp1F1S3iwAI7fMyjZ0L jK4m0hNJh+CJw== Date: Tue, 15 Jun 2021 11:32:10 -0700 From: Nathan Chancellor To: Matthew Wilcox Cc: kernel test robot , Hugh Dickins , kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, Linux Memory Management List , Andrew Morton Subject: Re: [linux-next:master 9529/10007] mm/hugetlb.c:1591:9: warning: no previous prototype for function 'hugetlb_basepage_index' Message-ID: References: <202106152328.Mh5S48hE-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=aGMJHW9B; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf30.hostedemail.com: domain of nathan@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=nathan@kernel.org X-Stat-Signature: 4wf1ftr7zit8rhx3fjfgz5b31fk3dk7a X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: D7B1CE000203 X-HE-Tag: 1623781929-255956 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, Jun 15, 2021 at 05:03:40PM +0100, Matthew Wilcox wrote: > On Tue, Jun 15, 2021 at 11:58:36PM +0800, kernel test robot wrote: > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All warnings (new ones prefixed by >>): > > > > >> mm/hugetlb.c:1591:9: warning: no previous prototype for function 'hugetlb_basepage_index' [-Wmissing-prototypes] > > pgoff_t hugetlb_basepage_index(struct page *page) > > So clang requires the prototype to still be in scope, while gcc doesn't. > Does one of our clangers want to file a bug about that? I see the exact same warning with GCC 11.1.0: $ curl -LSs https://lore.kernel.org/linux-mm/202106152328.Mh5S48hE-lkp@intel.com/2-a.bin | gzip -d > .config $ make -skj"$(nproc)" ARCH=arm64 CROSS_COMPILE=aarch64-linux- W=1 olddefconfig mm/hugetlb.c mm/hugetlb.c:1591:9: warning: no previous prototype for 'hugetlb_basepage_index' [-Wmissing-prototypes] 1591 | pgoff_t hugetlb_basepage_index(struct page *page) | ^~~~~~~~~~~~~~~~~~~~~~ Cheers, Nathan