]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fs: mark file_remove_privs_flags static
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Jul 2025 07:48:54 +0000 (09:48 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 11 Aug 2025 12:52:24 +0000 (14:52 +0200)
file_remove_privs_flags is only used inside of inode.c, mark it static.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/20250724074854.3316911-1-hch@lst.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/inode.c
include/linux/fs.h

index 01ebdc40021e2d4d70f0a9cb31c373a59f69f62e..3cbb78412a3ec30e81d8875bf102b3563e1939d9 100644 (file)
@@ -2189,7 +2189,7 @@ static int __remove_privs(struct mnt_idmap *idmap,
        return notify_change(idmap, dentry, &newattrs, NULL);
 }
 
-int file_remove_privs_flags(struct file *file, unsigned int flags)
+static int file_remove_privs_flags(struct file *file, unsigned int flags)
 {
        struct dentry *dentry = file_dentry(file);
        struct inode *inode = file_inode(file);
@@ -2214,7 +2214,6 @@ int file_remove_privs_flags(struct file *file, unsigned int flags)
                inode_has_no_xattr(inode);
        return error;
 }
-EXPORT_SYMBOL_GPL(file_remove_privs_flags);
 
 /**
  * file_remove_privs - remove special file privileges (suid, capabilities)
index d7ab4f96d7051f23246c1a16a2d09b1ffcd2d5de..796319914b0a063642c2bd0c0140697a0eb651f6 100644 (file)
@@ -3393,7 +3393,6 @@ static inline struct inode *new_inode_pseudo(struct super_block *sb)
 extern struct inode *new_inode(struct super_block *sb);
 extern void free_inode_nonrcu(struct inode *inode);
 extern int setattr_should_drop_suidgid(struct mnt_idmap *, struct inode *);
-extern int file_remove_privs_flags(struct file *file, unsigned int flags);
 extern int file_remove_privs(struct file *);
 int setattr_should_drop_sgid(struct mnt_idmap *idmap,
                             const struct inode *inode);