Skip to content

Commit

Permalink
inline functions left without protection of ifdef (acl)
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Markus Trippelsdorf authored and Al Viro committed Jun 24, 2009
1 parent c82e6d4 commit 641cf4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/posix_acl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 */

0 comments on commit 641cf4a

Please sign in to comment.