From: Bhumika Goyal Date: Wed, 30 Aug 2017 12:39:02 +0000 (+0530) Subject: fsnotify: make dnotify_fsnotify_ops const X-Git-Tag: Ubuntu-5.13.0-19.19~12665^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c9ea9df3032eff1c57853fdf3d54e276d63b4b4d;p=mirror_ubuntu-jammy-kernel.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, };