Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bury posix_acl_..._masq() variants

made static; no callers left outside of posix_acl.c. posix_acl_clone() also
has lost all external callers and became static...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro edde854e 826cae2f

+3 -11
+3 -8
fs/posix_acl.c
··· 24 24 25 25 EXPORT_SYMBOL(posix_acl_init); 26 26 EXPORT_SYMBOL(posix_acl_alloc); 27 - EXPORT_SYMBOL(posix_acl_clone); 28 27 EXPORT_SYMBOL(posix_acl_valid); 29 28 EXPORT_SYMBOL(posix_acl_equiv_mode); 30 29 EXPORT_SYMBOL(posix_acl_from_mode); 31 - EXPORT_SYMBOL(posix_acl_create_masq); 32 - EXPORT_SYMBOL(posix_acl_chmod_masq); 33 30 EXPORT_SYMBOL(posix_acl_permission); 34 31 35 32 /* ··· 56 59 /* 57 60 * Clone an ACL. 58 61 */ 59 - struct posix_acl * 62 + static struct posix_acl * 60 63 posix_acl_clone(const struct posix_acl *acl, gfp_t flags) 61 64 { 62 65 struct posix_acl *clone = NULL; ··· 280 283 * system calls. All permissions that are not granted by the acl are removed. 281 284 * The permissions in the acl are changed to reflect the mode_p parameter. 282 285 */ 283 - int 284 - posix_acl_create_masq(struct posix_acl *acl, mode_t *mode_p) 286 + static int posix_acl_create_masq(struct posix_acl *acl, mode_t *mode_p) 285 287 { 286 288 struct posix_acl_entry *pa, *pe; 287 289 struct posix_acl_entry *group_obj = NULL, *mask_obj = NULL; ··· 337 341 /* 338 342 * Modify the ACL for the chmod syscall. 339 343 */ 340 - int 341 - posix_acl_chmod_masq(struct posix_acl *acl, mode_t mode) 344 + static int posix_acl_chmod_masq(struct posix_acl *acl, mode_t mode) 342 345 { 343 346 struct posix_acl_entry *group_obj = NULL, *mask_obj = NULL; 344 347 struct posix_acl_entry *pa, *pe;
-3
include/linux/posix_acl.h
··· 73 73 74 74 extern void posix_acl_init(struct posix_acl *, int); 75 75 extern struct posix_acl *posix_acl_alloc(int, gfp_t); 76 - extern struct posix_acl *posix_acl_clone(const struct posix_acl *, gfp_t); 77 76 extern int posix_acl_valid(const struct posix_acl *); 78 77 extern int posix_acl_permission(struct inode *, const struct posix_acl *, int); 79 78 extern struct posix_acl *posix_acl_from_mode(mode_t, gfp_t); 80 79 extern int posix_acl_equiv_mode(const struct posix_acl *, mode_t *); 81 - extern int posix_acl_create_masq(struct posix_acl *, mode_t *); 82 - extern int posix_acl_chmod_masq(struct posix_acl *, mode_t); 83 80 extern int posix_acl_create(struct posix_acl **, gfp_t, mode_t *); 84 81 extern int posix_acl_chmod(struct posix_acl **, gfp_t, mode_t); 85 82