mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, dhowells@redhat.com,
	linux-cachefs@redhat.com, linux-kernel@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH] FS-Cache: make fscache_fsdef_index_def const
Date: Mon, 28 Aug 2017 23:17:11 +0530	[thread overview]
Message-ID: <1503942431-2767-1-git-send-email-bhumirks@gmail.com> (raw)

Make this const as it is only stored in the const field of a
fscache_cookie structure.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 fs/fscache/fsdef.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fscache/fsdef.c b/fs/fscache/fsdef.c
index 5a117df..f867328 100644
--- a/fs/fscache/fsdef.c
+++ b/fs/fscache/fsdef.c
@@ -48,7 +48,7 @@ enum fscache_checkaux fscache_fsdef_netfs_check_aux(void *cookie_netfs_data,
  * cache.  It can create whatever objects it likes in that index, including
  * further indices.
  */
-static struct fscache_cookie_def fscache_fsdef_index_def = {
+static const struct fscache_cookie_def fscache_fsdef_index_def = {
 	.name		= ".FS-Cache",
 	.type		= FSCACHE_COOKIE_TYPE_INDEX,
 };
-- 
1.9.1

                 reply	other threads:[~2017-08-28 17:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1503942431-2767-1-git-send-email-bhumirks@gmail.com \
    --to=bhumirks@gmail.com \
    --cc=dhowells@redhat.com \
    --cc=julia.lawall@lip6.fr \
    --cc=linux-cachefs@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®