From: Markus Trippelsdorf Subject: Re: [git pull] vfs pile 1.5 Date: Tue, 26 Jul 2011 10:58:04 +0200 Message-ID: <20110726085804.GA1639@x4.trippels.de> References: <20110725185649.GA22133@ZenIV.linux.org.uk> <20110726033535.GA11939@x4.trippels.de> <20110726082146.GB11939@x4.trippels.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Linus Torvalds , Al Viro , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig To: Steven Liu Return-path: Received: from ud10.udmedia.de ([194.117.254.50]:58906 "EHLO mail.ud10.udmedia.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751579Ab1GZI6I (ORCPT ); Tue, 26 Jul 2011 04:58:08 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 2011.07.26 at 16:52 +0800, Steven Liu wrote: > 2011/7/26 Markus Trippelsdorf : > > On 2011.07.25 at 21:52 -0700, Linus Torvalds wrote: > >> On Mon, Jul 25, 2011 at 8:35 PM, Markus Trippelsdorf > >> wrote: > >> > > >> > This breaks the build for "# CONFIG_FS_POSIX_ACL is not set" con= figs: > >> > >> Of course it does. And as usual, my exhaustive testing was for the > >> allyesconfig case, rather than doing both allyesconfig and allnoco= nfig > >> like I should. > >> > >> Bah. > >> > >> Does the attached trivial patch fix everything for you? > > > > Yes, thanks. > > > > But now xfs fails to build when CONFIG_FS_POSIX_ACL is not set: > > > > =C2=A0CC =C2=A0 =C2=A0 =C2=A0fs/xfs/linux-2.6/xfs_xattr.o > > fs/xfs/linux-2.6/xfs_iops.c:1025:14: error: =E2=80=98xfs_get_acl=E2= =80=99 undeclared here (not in a function) >=20 > maybe some one have not use #ifdef CONFIG_FS_POSIX_ACL > with fs/xfs/linux-2.6/xfs_iops.c:1025:14 #ifdefs are ugly. The following fixes the issue for me: diff --git a/fs/xfs/xfs_acl.h b/fs/xfs/xfs_acl.h index 2c656ef..39632d9 100644 --- a/fs/xfs/xfs_acl.h +++ b/fs/xfs/xfs_acl.h @@ -51,7 +51,10 @@ extern int posix_acl_default_exists(struct inode *in= ode); extern const struct xattr_handler xfs_xattr_acl_access_handler; extern const struct xattr_handler xfs_xattr_acl_default_handler; #else -# define xfs_get_acl(inode, type) NULL +static inline struct posix_acl *xfs_get_acl(struct inode *inode, int t= ype) +{ + return NULL; +} # define xfs_inherit_acl(inode, default_acl) 0 # define xfs_acl_chmod(inode) 0 # define posix_acl_access_exists(inode) 0 --=20 Markus -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html