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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D32AC43334 for ; Sat, 4 Jun 2022 18:49:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D14B06B0078; Sat, 4 Jun 2022 14:49:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CBFDD6B007B; Sat, 4 Jun 2022 14:49:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BB0B76B007D; Sat, 4 Jun 2022 14:49:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id AC2DE6B0078 for ; Sat, 4 Jun 2022 14:49:00 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 7F47B80A3A for ; Sat, 4 Jun 2022 18:49:00 +0000 (UTC) X-FDA: 79541440440.02.95FE4D1 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf19.hostedemail.com (Postfix) with ESMTP id C41241A0008 for ; Sat, 4 Jun 2022 18:48:43 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 252FA60F52; Sat, 4 Jun 2022 18:48:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 389F5C385B8; Sat, 4 Jun 2022 18:48:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1654368538; bh=AykKsuKg8j2GCkZX46bMGZ6g4meFZe03Ce6ywzT0SiA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fYBOrFm/9OJcfGHSlZUIzvWXc87Zqepjr5kVo8x5EvJdgrrWKpKadJQxSLe7fAFHz 79eXlfeslRSr6w1kflo2RpTU6fxfcBIAuWfpp8p+fcCp2fWsoRi90eiEOTp/lPIHbn MYKD2wB10R6TRmk9slN27jms4CEtJPAEbL4AIYJM= Date: Sat, 4 Jun 2022 11:48:57 -0700 From: Andrew Morton To: kernel test robot Cc: Shiyang Ruan , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Linux Memory Management List , "Darrick J. Wong" Subject: Re: [akpm-mm:mm-unstable 179/180] fs/xfs/xfs_file.c:1273:1: warning: no previous prototype for 'xfs_dax_fault' Message-Id: <20220604114857.0e34301eb39cfda3ff509a59@linux-foundation.org> In-Reply-To: <202206042008.WcIK2oVM-lkp@intel.com> References: <202206042008.WcIK2oVM-lkp@intel.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: C41241A0008 X-Stat-Signature: qhppazpw5arz91ufaxoinyb8rgbgk48p X-Rspam-User: Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b="fYBOrFm/"; spf=pass (imf19.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-HE-Tag: 1654368523-897123 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 Sat, 4 Jun 2022 20:33:01 +0800 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable > head: f06e3c5104126b9a6660b58f29619b53bfa33b2b > commit: d5f5b32dee7c09e3152cbbce45c73f0b1ea7d94c [179/180] xfs: support CoW in fsdax mode > config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220604/202206042008.WcIK2oVM-lkp@intel.com/config) > compiler: mips-linux-gcc (GCC) 11.3.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=d5f5b32dee7c09e3152cbbce45c73f0b1ea7d94c > git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git > git fetch --no-tags akpm-mm mm-unstable > git checkout d5f5b32dee7c09e3152cbbce45c73f0b1ea7d94c > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash fs/xfs/ > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > >> fs/xfs/xfs_file.c:1273:1: warning: no previous prototype for 'xfs_dax_fault' [-Wmissing-prototypes] > 1273 | xfs_dax_fault( > | ^~~~~~~~~~~~~ > Works OK for me with gcc-12.1.0. I assume this will fix it. --- a/fs/xfs/xfs_file.c~xfs-support-cow-in-fsdax-mode-fix +++ a/fs/xfs/xfs_file.c @@ -1256,7 +1256,7 @@ xfs_file_llseek( } #ifdef CONFIG_FS_DAX -int +static int xfs_dax_fault( struct vm_fault *vmf, enum page_entry_size pe_size, @@ -1269,7 +1269,7 @@ xfs_dax_fault( &xfs_read_iomap_ops); } #else -int +static int xfs_dax_fault( struct vm_fault *vmf, enum page_entry_size pe_size, _