From: Bhumika Goyal Date: Sun, 6 Aug 2017 17:24:00 +0000 (+0530) Subject: dm integrity: make blk_integrity_profile structure const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c373d660420f74c3e16d148629b810f3a36ac9e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mike Snitzer --- 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,