From: Alex Elder <aelder@sgi.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Steven Liu <lingjiujianke@gmail.com>,
Al Viro <viro@zeniv.linux.org.uk>, <linux-kernel@vger.kernel.org>,
<linux-fsdevel@vger.kernel.org>,
Christoph Hellwig <hch@infradead.org>,
Markus Trippelsdorf <markus@trippelsdorf.de>
Subject: Re: [PATCH] xfs: Fix build breakage in xfs_iops.c when CONFIG_FS_POSIX_ACL is not set
Date: Fri, 29 Jul 2011 12:56:13 -0500 [thread overview]
Message-ID: <1311962173.2790.24.camel@doink> (raw)
In-Reply-To: <20110726091520.GB1639@x4.trippels.de>
On Tue, 2011-07-26 at 11:15 +0200, Markus Trippelsdorf wrote:
> commit 4e34e719e45, that takes the ACL checks to common code,
> accidentely broke the build when CONFIG_FS_POSIX_ACL is not set:
>
> CC fs/xfs/linux-2.6/xfs_iops.o
> fs/xfs/linux-2.6/xfs_iops.c:1025:14: error: ‘xfs_get_acl’ undeclared here (not in a function)
>
> Fix this by declaring xfs_get_acl a static inline function.
>
> Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
> ---
> fs/xfs/xfs_acl.h | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> 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 *inode);
> 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 type)
> +{
> + return NULL;
> +}
> # define xfs_inherit_acl(inode, default_acl) 0
> # define xfs_acl_chmod(inode) 0
> # define posix_acl_access_exists(inode) 0
Linus, I have done basic testing of this patch (build,
boot, and some simple XFS tests that touch ACLs) using
your latest master branch (55f9c40). I tested three
combinations:
CONFIG_XFS_POSIX_ACL (and CONFIG_FS_POSIX_ACL) on
CONFIG_XFS_POSIX_ACL off, CONFIG_FS_POSIX_ACL on
CONFIG_XFS_POSIX_ACL and CONFIG_FS_POSIX_ACL both off
I confirmed the build problem in the last two configs
without this patch, and verified it went away with
the patch applied.
So all is well from my perspective. Please either take
his original patch, or pull from here:
git://oss.sgi.com/xfs/xfs for-linus
Thanks.
Signed-off-by: Alex Elder <aelder@sgi.com>
--
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
next prev parent reply other threads:[~2011-07-29 17:56 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-25 18:56 [git pull] vfs pile 1.5 Al Viro
2011-07-26 3:35 ` Markus Trippelsdorf
2011-07-26 4:52 ` Linus Torvalds
2011-07-26 5:25 ` Stephen Rothwell
2011-07-26 8:21 ` Markus Trippelsdorf
2011-07-26 8:52 ` Steven Liu
2011-07-26 8:58 ` Markus Trippelsdorf
2011-07-26 9:15 ` [PATCH] xfs: Fix build breakage in xfs_iops.c when CONFIG_FS_POSIX_ACL is not set Markus Trippelsdorf
2011-07-26 9:34 ` Christoph Hellwig
2011-07-26 9:47 ` Markus Trippelsdorf
2011-07-26 9:49 ` Christoph Hellwig
2011-07-26 16:12 ` Linus Torvalds
2011-07-29 13:17 ` Ingo Molnar
2011-07-29 17:56 ` Alex Elder [this message]
2011-07-26 15:52 ` [git pull] vfs pile 1.5 Linus Torvalds
2011-07-26 15:59 ` Markus Trippelsdorf
2011-07-26 16:10 ` Linus Torvalds
2011-07-26 16:18 ` Christoph Hellwig
2011-07-26 16:37 ` Linus Torvalds
2011-07-31 3:45 ` Ali Bahar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1311962173.2790.24.camel@doink \
--to=aelder@sgi.com \
--cc=hch@infradead.org \
--cc=lingjiujianke@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=markus@trippelsdorf.de \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).