pidfd: make pidfs_dentry_operations static
PATCH 1/1 pidfd: make pidfs_dentry_operations static
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 <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- fs/pidfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/pidfs.c +1 -1
@@ -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,
Signature · 1 line
2.20.1.7.g153144c
Christian Brauner
maintainerAlready fixed. Thanks.