From: Bhumika Goyal Date: Wed, 30 Aug 2017 12:39:02 +0000 (+0530) Subject: fsnotify: make dnotify_fsnotify_ops const X-Git-Tag: kvm-4.14-2~42^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c9ea9df3032eff1c57853fdf3d54e276d63b4b4d;p=users%2Fdwmw2%2Flinux.git fsnotify: make dnotify_fsnotify_ops const Make this const as it is never modified. Signed-off-by: Bhumika Goyal Signed-off-by: Jan Kara --- diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c index 2430a0415995d..cba3283159295 100644 --- a/fs/notify/dnotify/dnotify.c +++ b/fs/notify/dnotify/dnotify.c @@ -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, };