Skip to contentSkip to conversation

dm integrity: make blk_integrity_profile structure const

PATCH New Bhumika Goyal 1 participant 1 message Aug 6, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/md/dm-integrity.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-integrity.c +1 -1
index 293a196..e522a94 100644
@@ -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,
Signature · 1 line
1.9.1