aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/t10-pi.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-03-24 18:03:48 -0700
committerJens Axboe <axboe@fb.com>2017-03-24 20:34:39 -0600
commit869ab90f0ae0002ce6e9d3a5c75156ae8de48ffc (patch)
tree22ff97e02c266e84658d535d63107f84e67fc059 /include/linux/t10-pi.h
parentblock: remove outdated part of blkdev_issue_flush() comment (diff)
downloadwireguard-linux-869ab90f0ae0002ce6e9d3a5c75156ae8de48ffc.tar.xz
wireguard-linux-869ab90f0ae0002ce6e9d3a5c75156ae8de48ffc.zip
block: constify struct blk_integrity_profile
blk_integrity_profile's are never modified, so mark them 'const' so that they are placed in .rodata and benefit from memory protection. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/t10-pi.h')
-rw-r--r--include/linux/t10-pi.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/t10-pi.h b/include/linux/t10-pi.h
index 9fba9dd33544..9375d23a24e7 100644
--- a/include/linux/t10-pi.h
+++ b/include/linux/t10-pi.h
@@ -34,9 +34,9 @@ struct t10_pi_tuple {
};
-extern struct blk_integrity_profile t10_pi_type1_crc;
-extern struct blk_integrity_profile t10_pi_type1_ip;
-extern struct blk_integrity_profile t10_pi_type3_crc;
-extern struct blk_integrity_profile t10_pi_type3_ip;
+extern const struct blk_integrity_profile t10_pi_type1_crc;
+extern const struct blk_integrity_profile t10_pi_type1_ip;
+extern const struct blk_integrity_profile t10_pi_type3_crc;
+extern const struct blk_integrity_profile t10_pi_type3_ip;
#endif