Skip to content

Commit

Permalink
[PATCH] reiserfs_get_acl() build fix
Browse files Browse the repository at this point in the history
With CONFIG_REISERFS_FS_XATTR=y, CONFIG_REISERFS_FS_POSIX_ACL=n:

fs/reiserfs/xattr.c: In function `reiserfs_check_acl':
fs/reiserfs/xattr.c:1330: called object is not a function

Cc: Chris Mason <mason@suse.com>
Cc: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Feb 5, 2006
1 parent 165a2c1 commit bc5e483
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/linux/reiserfs_acl.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ extern struct reiserfs_xattr_handler posix_acl_default_handler;
extern struct reiserfs_xattr_handler posix_acl_access_handler;
#else

#define reiserfs_get_acl NULL
#define reiserfs_cache_default_acl(inode) 0

static inline struct posix_acl *reiserfs_get_acl(struct inode *inode, int type)
{
return NULL;
}

static inline int reiserfs_xattr_posix_acl_init(void)
{
return 0;
Expand Down

0 comments on commit bc5e483

Please sign in to comment.