Return-Path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:34927 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751302AbdH3MjQ (ORCPT ); Wed, 30 Aug 2017 08:39:16 -0400 From: Bhumika Goyal To: julia.lawall@lip6.fr, jack@suse.cz, amir73il@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] fsnotify: make dnotify_fsnotify_ops const Date: Wed, 30 Aug 2017 18:09:02 +0530 Message-Id: <1504096742-12621-1-git-send-email-bhumirks@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Make this const as it is never modified. Signed-off-by: Bhumika Goyal --- fs/notify/dnotify/dnotify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c index 2430a04..cba3283 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, }; -- 1.9.1