summaryrefslogtreecommitdiffstats
path: root/fs/posix_acl.c
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2022-10-28 10:00:26 +0200
committerChristian Brauner (Microsoft) <brauner@kernel.org>2022-10-28 10:00:26 +0200
commita351b1f444187312bb42479cb26e82f26fc481d2 (patch)
treeb2f8365de853c7ef3385435d0a4a031a656b9cfb /fs/posix_acl.c
parent0a26bde2c9db9817e2b4c0f890236f78d4d8ed7c (diff)
downloadlinux-stable-a351b1f444187312bb42479cb26e82f26fc481d2.tar.gz
linux-stable-a351b1f444187312bb42479cb26e82f26fc481d2.tar.bz2
linux-stable-a351b1f444187312bb42479cb26e82f26fc481d2.zip
acl: make vfs_posix_acl_to_xattr() static
After reworking posix acls this helper isn't used anywhere outside the core posix acl paths. Make it static. Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Diffstat (limited to 'fs/posix_acl.c')
-rw-r--r--fs/posix_acl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/posix_acl.c b/fs/posix_acl.c
index acb7f7d7f11d..989bbf280bfe 100644
--- a/fs/posix_acl.c
+++ b/fs/posix_acl.c
@@ -884,9 +884,10 @@ EXPORT_SYMBOL (posix_acl_to_xattr);
* Return: On success, the size of the stored uapi posix acls, on error a
* negative errno.
*/
-ssize_t vfs_posix_acl_to_xattr(struct user_namespace *mnt_userns,
- struct inode *inode, const struct posix_acl *acl,
- void *buffer, size_t size)
+static ssize_t vfs_posix_acl_to_xattr(struct user_namespace *mnt_userns,
+ struct inode *inode,
+ const struct posix_acl *acl, void *buffer,
+ size_t size)
{
struct posix_acl_xattr_header *ext_acl = buffer;