Skip to content

Commit 643b8a2

Browse files
committed
ovl: mark *_cu_creds() as unused temporarily
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>
1 parent bdba9c7 commit 643b8a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/overlayfs/copy_up.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ struct ovl_cu_creds {
729729
struct cred *new;
730730
};
731731

732-
static int ovl_prep_cu_creds(struct dentry *dentry, struct ovl_cu_creds *cc)
732+
static int __maybe_unused ovl_prep_cu_creds(struct dentry *dentry, struct ovl_cu_creds *cc)
733733
{
734734
int err;
735735

@@ -744,7 +744,7 @@ static int ovl_prep_cu_creds(struct dentry *dentry, struct ovl_cu_creds *cc)
744744
return 0;
745745
}
746746

747-
static void ovl_revert_cu_creds(struct ovl_cu_creds *cc)
747+
static void __maybe_unused ovl_revert_cu_creds(struct ovl_cu_creds *cc)
748748
{
749749
if (cc->new) {
750750
revert_creds(cc->old);

0 commit comments

Comments
 (0)