summaryrefslogtreecommitdiff
path: root/drivers/md/dm-integrity.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-06 20:24:00 +0300
committerMike Snitzer <snitzer@redhat.com>2017-09-11 18:00:53 +0300
commit7c373d660420f74c3e16d148629b810f3a36ac9e (patch)
tree8a517233d6bec4bdcde3922c0713ce0aa62bebee /drivers/md/dm-integrity.c
parentb7e326f7b7375392d06f9cfbc27a7c63181f69d7 (diff)
downloadlinux-7c373d660420f74c3e16d148629b810f3a36ac9e.tar.xz
dm integrity: make blk_integrity_profile structure const
Make this structure const as it is only stored in the profile field of a blk_integrity structure. This field is of type const, so make structure as const. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-integrity.c')
-rw-r--r--drivers/md/dm-integrity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c
index fe5ad640a0aa..2b32342da556 100644
--- a/drivers/md/dm-integrity.c
+++ b/drivers/md/dm-integrity.c
@@ -299,7 +299,7 @@ static void __DEBUG_bytes(__u8 *bytes, size_t len, const char *msg, ...)
/*
* DM Integrity profile, protection is performed layer above (dm-crypt)
*/
-static struct blk_integrity_profile dm_integrity_profile = {
+static const struct blk_integrity_profile dm_integrity_profile = {
.name = "DM-DIF-EXT-TAG",
.generate_fn = NULL,
.verify_fn = NULL,