mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
fscrypt: constify struct fscrypt_operations
Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]> Reviewed-by: Richard Weinberger <[email protected]>
This commit is contained in:
parent
b14c8e6afd
commit
6f69f0ed61
5 changed files with 7 additions and 7 deletions
|
|
@ -1173,7 +1173,7 @@ static unsigned ext4_max_namelen(struct inode *inode)
|
|||
EXT4_NAME_LEN;
|
||||
}
|
||||
|
||||
static struct fscrypt_operations ext4_cryptops = {
|
||||
static const struct fscrypt_operations ext4_cryptops = {
|
||||
.key_prefix = "ext4:",
|
||||
.get_context = ext4_get_context,
|
||||
.prepare_context = ext4_prepare_context,
|
||||
|
|
@ -1184,7 +1184,7 @@ static struct fscrypt_operations ext4_cryptops = {
|
|||
.max_namelen = ext4_max_namelen,
|
||||
};
|
||||
#else
|
||||
static struct fscrypt_operations ext4_cryptops = {
|
||||
static const struct fscrypt_operations ext4_cryptops = {
|
||||
.is_encrypted = ext4_encrypted_inode,
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue