]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ovl: mark ovl_setup_cred_for_create() as unused temporarily
authorChristian Brauner <brauner@kernel.org>
Mon, 17 Nov 2025 09:34:41 +0000 (10:34 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 19 Nov 2025 20:58:26 +0000 (21:58 +0100)
The function will become unused in the next patch.
We'll remove it in later patches to keep the diff legible.

Link: https://patch.msgid.link/20251117-work-ovl-cred-guard-prepare-v2-4-bd1c97a36d7b@kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/overlayfs/dir.c

index 9eafddea8192502078c1c26e99f48d49040cc716..b21db1eb34bc255d1bb170f4638477e190f6ba65 100644 (file)
@@ -617,7 +617,7 @@ DEFINE_CLASS(ovl_override_creator_creds,
             ovl_override_creator_creds(dentry, inode, mode),
             struct dentry *dentry, struct inode *inode, umode_t mode)
 
-static const struct cred *ovl_setup_cred_for_create(struct dentry *dentry,
+static const __maybe_unused struct cred *ovl_setup_cred_for_create(struct dentry *dentry,
                                                    struct inode *inode,
                                                    umode_t mode,
                                                    const struct cred *old_cred)