mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Markus Trippelsdorf <markus@trippelsdorf.de>
To: viro@ZenIV.linux.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: Re: Build failure latest git. (acl related)
Date: Wed, 24 Jun 2009 22:28:52 +0200	[thread overview]
Message-ID: <20090624202852.GA31192@phenom2.trippelsdorf.de> (raw)
In-Reply-To: <20090624200941.GA30531@phenom2.trippelsdorf.de>

On Wed, Jun 24, 2009 at 10:09:41PM +0200, Markus Trippelsdorf wrote:
> The kernel does not build anymore (latest git):
> 
> In file included from include/linux/nfsacl.h:31,
>                  from include/linux/nfs_xdr.h:4,
>                  from include/linux/nfs_fs.h:58,
>                  from init/do_mounts.c:19:
> include/linux/posix_acl.h: In function `get_cached_acl':
> include/linux/posix_acl.h:91: error: `struct inode' has no member named `i_acl'
> include/linux/posix_acl.h:94: error: `struct inode' has no member named `i_default_acl'
> include/linux/posix_acl.h: In function `set_cached_acl':
> include/linux/posix_acl.h:118: error: `struct inode' has no member named `i_acl'
> include/linux/posix_acl.h:119: error: `struct inode' has no member named `i_acl'
> include/linux/posix_acl.h:122: error: `struct inode' has no member named `i_default_acl'
> include/linux/posix_acl.h:123: error: `struct inode' has no member named `i_default_acl'
> include/linux/posix_acl.h: In function `forget_cached_acl':
> include/linux/posix_acl.h:137: error: `struct inode' has no member named `i_acl'
> include/linux/posix_acl.h:138: error: `struct inode' has no member named `i_acl'
> include/linux/posix_acl.h:141: error: `struct inode' has no member named `i_default_acl'
> include/linux/posix_acl.h:142: error: `struct inode' has no member named `i_default_acl'
> make[1]: *** [init/do_mounts.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> 

This patch should fix it:


diff --git a/include/linux/posix_acl.h b/include/linux/posix_acl.h
index 0cdba01..c513466 100644
--- a/include/linux/posix_acl.h
+++ b/include/linux/posix_acl.h
@@ -83,6 +83,7 @@ extern int posix_acl_chmod_masq(struct posix_acl *, mode_t);
 extern struct posix_acl *get_posix_acl(struct inode *, int);
 extern int set_posix_acl(struct inode *, int, struct posix_acl *);
 
+#ifdef CONFIG_FS_POSIX_ACL
 static inline struct posix_acl *get_cached_acl(struct inode *inode, int type)
 {
 	struct posix_acl **p, *acl;
@@ -146,5 +147,5 @@ static inline void forget_cached_acl(struct inode *inode, int type)
 	if (old != ACL_NOT_CACHED)
 		posix_acl_release(old);
 }
-
+#endif
 #endif  /* __LINUX_POSIX_ACL_H */
-- 
Markus

  reply	other threads:[~2009-06-24 20:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-24 20:09 Markus Trippelsdorf
2009-06-24 20:28 ` Markus Trippelsdorf [this message]
2009-06-24 20:33   ` Al Viro
2009-06-24 20:38     ` Al Viro
2009-06-24 20:41       ` Linus Torvalds
2009-06-24 20:47         ` Al Viro
2009-06-24 21:09         ` Al Viro
2009-06-24 21:22         ` Frans Pop
2009-06-24 20:46     ` Markus Trippelsdorf
2009-06-24 20:49       ` Al Viro
2009-06-24 21:04         ` Al Viro

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=20090624202852.GA31192@phenom2.trippelsdorf.de \
    --to=markus@trippelsdorf.de \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®