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@xxxxxxxxxxxxxxxxx> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8284 Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx> --- fs/pidfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1.7.g153144c