From: Bhumika Goyal Date: Wed, 30 Aug 2017 12:39:02 +0000 (+0530) Subject: fsnotify: make dnotify_fsnotify_ops const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c9ea9df3032eff1c57853fdf3d54e276d63b4b4d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 2430a0415995..cba328315929 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, };