lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1503942431-2767-1-git-send-email-bhumirks@gmail.com>
Date:   Mon, 28 Aug 2017 23:17:11 +0530
From:   Bhumika Goyal <bhumirks@...il.com>
To:     julia.lawall@...6.fr, dhowells@...hat.com,
        linux-cachefs@...hat.com, linux-kernel@...r.kernel.org
Cc:     Bhumika Goyal <bhumirks@...il.com>
Subject: [PATCH] FS-Cache: make fscache_fsdef_index_def const

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

Signed-off-by: Bhumika Goyal <bhumirks@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ