diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-11-14 23:45:24 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-11-19 21:58:27 +0100 |
| commit | 643b8a2c0a5bf88faf9f324b9617d2640d887a0f (patch) | |
| tree | e9263eddd143a0a267f2911332150cea9d75bc2a /fs/overlayfs | |
| parent | bdba9c79c8ba6d194fb2821f504222e1630d5c5f (diff) | |
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>
Diffstat (limited to 'fs/overlayfs')
| -rw-r--r-- | fs/overlayfs/copy_up.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/overlayfs/copy_up.c b/fs/overlayfs/copy_up.c index 28fdbf131db6..2ec7d3ce1f0c 100644 --- a/fs/overlayfs/copy_up.c +++ b/fs/overlayfs/copy_up.c @@ -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); |