]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ovl: mark *_cu_creds() as unused temporarily
authorChristian Brauner <brauner@kernel.org>
Fri, 14 Nov 2025 22:45:24 +0000 (23:45 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 19 Nov 2025 20:58:27 +0000 (21:58 +0100)
They will become unused in the next patch and we'll drop them after the
conversion is finished together with the struct. This keeps the changes
small and reviewable.

Link: https://patch.msgid.link/20251114-work-ovl-cred-guard-copyup-v1-3-ea3fb15cf427@kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/overlayfs/copy_up.c

index 28fdbf131db608519eabf94e37a44bb1de6c543a..2ec7d3ce1f0cc063503b9fb396406ccd3d56000a 100644 (file)
@@ -729,7 +729,7 @@ struct ovl_cu_creds {
        struct cred *new;
 };
 
-static int ovl_prep_cu_creds(struct dentry *dentry, struct ovl_cu_creds *cc)
+static int __maybe_unused ovl_prep_cu_creds(struct dentry *dentry, struct ovl_cu_creds *cc)
 {
        int err;
 
@@ -744,7 +744,7 @@ static int ovl_prep_cu_creds(struct dentry *dentry, struct ovl_cu_creds *cc)
        return 0;
 }
 
-static void ovl_revert_cu_creds(struct ovl_cu_creds *cc)
+static void __maybe_unused ovl_revert_cu_creds(struct ovl_cu_creds *cc)
 {
        if (cc->new) {
                revert_creds(cc->old);