From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 6 Jul 2018 06:04:07 -0700 From: Matthew Wilcox To: Ross Zwisler , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jan Kara , Jeff Layton , Lukas Czerner , Christoph Hellwig , Goldwyn Rodrigues , Nicholas Piggin , Ryusuke Konishi , linux-nilfs@vger.kernel.org, Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net Subject: Re: [PATCH v14 68/74] dax: Convert dax_lock_page to XArray Message-ID: <20180706130407.GA18395@bombadil.infradead.org> References: <20180617020052.4759-1-willy@infradead.org> <20180617020052.4759-69-willy@infradead.org> <20180629173055.GA2973@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180629173055.GA2973@linux.intel.com> Sender: owner-linux-mm@kvack.org List-ID: On Fri, Jun 29, 2018 at 11:30:55AM -0600, Ross Zwisler wrote: > On Sat, Jun 16, 2018 at 07:00:46PM -0700, Matthew Wilcox wrote: > > Signed-off-by: Matthew Wilcox > > --- > <> > > +static void *dax_make_page_entry(struct page *page, void *entry) > > +{ > > + pfn_t pfn = page_to_pfn_t(page); > > + return dax_make_entry(pfn, dax_is_pmd_entry(entry)); > > +} > > This function is defined and never used, so we get: > > fs/dax.c:106:14: warning: ‘dax_make_page_entry’ defined but not used [-Wunused-function] > static void *dax_make_page_entry(struct page *page, void *entry) > ^~~~~~~~~~~~~~~~~~~ Yeah, it was used in one of the functions Dan added, then removed. I understand he's planning on bringing that back before 4.19 and I'm going to rebase on top of that, so I've left it there for now.