summaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-02-07 15:42:10 -0500
committerTheodore Ts'o <tytso@mit.edu>2017-02-08 10:59:57 -0500
commit6f69f0ed6136c302976f8e8f859b73d47f0c0c5c (patch)
treea0d3d6f76953010e4952b09779a6d3fab13ea205 /fs/ubifs
parentb14c8e6afd873cae97060272efaac376efec77a4 (diff)
fscrypt: constify struct fscrypt_operations
Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/crypto.c2
-rw-r--r--fs/ubifs/super.c2
-rw-r--r--fs/ubifs/ubifs.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/fs/ubifs/crypto.c b/fs/ubifs/crypto.c
index 6335abcf98df..382ed428cfd2 100644
--- a/fs/ubifs/crypto.c
+++ b/fs/ubifs/crypto.c
@@ -77,7 +77,7 @@ int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn,
77 return 0; 77 return 0;
78} 78}
79 79
80struct fscrypt_operations ubifs_crypt_operations = { 80const struct fscrypt_operations ubifs_crypt_operations = {
81 .flags = FS_CFLG_OWN_PAGES, 81 .flags = FS_CFLG_OWN_PAGES,
82 .key_prefix = "ubifs:", 82 .key_prefix = "ubifs:",
83 .get_context = ubifs_crypt_get_context, 83 .get_context = ubifs_crypt_get_context,
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index e08aa04fc835..b73811bd7676 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -2000,7 +2000,7 @@ static struct ubifs_info *alloc_ubifs_info(struct ubi_volume_desc *ubi)
2000} 2000}
2001 2001
2002#ifndef CONFIG_UBIFS_FS_ENCRYPTION 2002#ifndef CONFIG_UBIFS_FS_ENCRYPTION
2003struct fscrypt_operations ubifs_crypt_operations = { 2003const struct fscrypt_operations ubifs_crypt_operations = {
2004 .is_encrypted = __ubifs_crypt_is_encrypted, 2004 .is_encrypted = __ubifs_crypt_is_encrypted,
2005}; 2005};
2006#endif 2006#endif
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index d9df379bacc6..f0c86f076535 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -1824,7 +1824,7 @@ int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn,
1824 unsigned int *out_len, int block); 1824 unsigned int *out_len, int block);
1825#endif 1825#endif
1826 1826
1827extern struct fscrypt_operations ubifs_crypt_operations; 1827extern const struct fscrypt_operations ubifs_crypt_operations;
1828 1828
1829static inline bool __ubifs_crypt_is_encrypted(struct inode *inode) 1829static inline bool __ubifs_crypt_is_encrypted(struct inode *inode)
1830{ 1830{