fsnotify: make dnotify_fsnotify_ops const
PATCH 1/1 fsnotify: make dnotify_fsnotify_ops const
Make this const as it is never modified.
Signed-off-by Bhumika Goyal <[email protected]>
--- fs/notify/dnotify/dnotify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/notify/dnotify/dnotify.c +1 -1
@@ -133,7 +133,7 @@ static void dnotify_free_mark(struct fsnotify_mark *fsn_mark)kmem_cache_free (dnotify_mark_cache, dn_mark); } -static struct fsnotify_ops dnotify_fsnotify_ops = { +static const struct fsnotify_ops dnotify_fsnotify_ops = { .handle_event = dnotify_handle_event, .free_mark = dnotify_free_mark, };
Signature · 1 line
1.9.1
Jan Kara
maintainerQuoted 3 lines · Bhumika Goyal
Make this const as it is never modified.
Signed-off-by Bhumika Goyal <[email protected]>
Thanks. Added to my tree.
Honza
Quoted 20 lines
--- fs/notify/dnotify/dnotify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/notify/dnotify/dnotify.c +1
-1@@ -133,7 +133,7 @@ static void dnotify_free_mark(struct fsnotify_mark *fsn_mark)kmem_cache_free (dnotify_mark_cache, dn_mark); } -static struct fsnotify_ops dnotify_fsnotify_ops = { +static const struct fsnotify_ops dnotify_fsnotify_ops = { .handle_event = dnotify_handle_event, .free_mark = dnotify_free_mark, };Signature · 1 line
1.9.1
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR