From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752033Ab0HARfV (ORCPT ); Sun, 1 Aug 2010 13:35:21 -0400 Received: from mx2.netapp.com ([216.240.18.37]:28617 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751392Ab0HARfU convert rfc822-to-8bit (ORCPT ); Sun, 1 Aug 2010 13:35:20 -0400 X-IronPort-AV: E=Sophos;i="4.55,299,1278313200"; d="scan'208";a="417023148" Subject: Re: [PATCH] NFS: Fix build failure on !CONFIG_NFS_V3 && !CONFIG_NFS_V3 From: Trond Myklebust To: Linus Torvalds Cc: Ingo Molnar , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, Randy Dunlap In-Reply-To: References: <1280519035.12852.32.camel@heimdal.trondhjem.org> <20100801064415.GA10523@elte.hu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Organization: NetApp Date: Sun, 01 Aug 2010 13:35:00 -0400 Message-ID: <1280684100.4430.8.camel@heimdal.trondhjem.org> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 (2.30.2-4.fc13) X-OriginalArrivalTime: 01 Aug 2010 17:35:01.0012 (UTC) FILETIME=[DE58E540:01CB319F] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2010-08-01 at 10:10 -0700, Linus Torvalds wrote: > On Sat, Jul 31, 2010 at 11:44 PM, Ingo Molnar wrote: > > > > FYI, these commits introduced a build failure on x86: > > > > fs/nfs/file.c:508: error: implicit declaration of function ‘nfs_commit_inode’ > > Grr. Trond? Sorry. I was intending to put that declaration outside the #ifdef. The stub function is still declared in fs/nfs/write.c > > @@ -492,11 +492,9 @@ extern int nfs_writeback_done(struct rpc_task *, struct nfs_write_data *); > > extern int nfs_wb_all(struct inode *inode); > > extern int nfs_wb_page(struct inode *inode, struct page* page); > > extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); > > -#if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4) > > extern int nfs_commit_inode(struct inode *, int); > > extern struct nfs_write_data *nfs_commitdata_alloc(void); > > extern void nfs_commit_free(struct nfs_write_data *wdata); > > -#endif > > No, I think perhaps the '#if' line should just be moved down one line. > The other function still only exist for V3/V4, it's just > nfs_commit_inode() that is available (as a stub that just returns 0) > for V2. > > But maybe that stub should be made an inline function or #define? > > Trond? I'll convert it into an inlined stub just as it was prior to commit 8fc795f703c5138e1a8bfb88c69f52632031aa6a. Trond