Message ID | 20240222083604.11280-1-jiapeng.chong@linux.alibaba.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | pidfd: make pidfs_dentry_operations static | expand |
Already fixed. Thanks.
diff --git a/fs/pidfs.c b/fs/pidfs.c index c33501c9cd8b..85e9617f0aee 100644 --- a/fs/pidfs.c +++ b/fs/pidfs.c @@ -172,7 +172,7 @@ static void pidfdfs_prune_dentry(struct dentry *dentry) } } -const struct dentry_operations pidfs_dentry_operations = { +static const struct dentry_operations pidfs_dentry_operations = { .d_delete = always_delete_dentry, .d_dname = pidfs_dname, .d_prune = pidfdfs_prune_dentry,
The pidfs_dentry_operations are not used outside the file pidfs.c, so the modification is defined as static. fs/pidfs.c:175:32: warning: symbol 'pidfs_dentry_operations' was not declared. Should it be static? Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8284 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> --- fs/pidfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)