dm integrity: make blk_integrity_profile structure const
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 6 Aug 2017 17:24:00 +0000 (22:54 +0530)
committerMike Snitzer <snitzer@redhat.com>
Mon, 11 Sep 2017 15:00:53 +0000 (11:00 -0400)
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>
drivers/md/dm-integrity.c

index fe5ad640a0aab2b26019bcf47c2c881bc62a55e2..2b32342da556b69cbbb14cff44f03bb09f5e571a 100644 (file)
@@ -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,