HID: hiddev: Fix slab-out-of-bounds write in hiddev_ioctl_usage()
[linux/fpc-iii.git] / fs / hfsplus / acl.h
blob95c8ed9ec17f7006940cf9c0fccdfe3c07a7868f
1 /*
2 * linux/fs/hfsplus/acl.h
4 * Vyacheslav Dubeyko <slava@dubeyko.com>
6 * Handler for Posix Access Control Lists (ACLs) support.
7 */
9 #include <linux/posix_acl_xattr.h>
11 #ifdef CONFIG_HFSPLUS_FS_POSIX_ACL
13 /* posix_acl.c */
14 struct posix_acl *hfsplus_get_posix_acl(struct inode *inode, int type);
15 int hfsplus_set_posix_acl(struct inode *inode, struct posix_acl *acl,
16 int type);
17 extern int hfsplus_init_posix_acl(struct inode *, struct inode *);
19 #else /* CONFIG_HFSPLUS_FS_POSIX_ACL */
20 #define hfsplus_get_posix_acl NULL
21 #define hfsplus_set_posix_acl NULL
23 static inline int hfsplus_init_posix_acl(struct inode *inode, struct inode *dir)
25 return 0;
27 #endif /* CONFIG_HFSPLUS_FS_POSIX_ACL */