From: Christian Brauner Date: Mon, 17 Nov 2025 09:34:41 +0000 (+0100) Subject: ovl: mark ovl_setup_cred_for_create() as unused temporarily X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a227c2766177db9733f86388d9d811df81e44ac;p=thirdparty%2Flinux.git ovl: mark ovl_setup_cred_for_create() as unused temporarily 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 Signed-off-by: Christian Brauner --- diff --git a/fs/overlayfs/dir.c b/fs/overlayfs/dir.c index 9eafddea81925..b21db1eb34bc2 100644 --- a/fs/overlayfs/dir.c +++ b/fs/overlayfs/dir.c @@ -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)