diff options
author | Eric Biggers | 2017-03-25 02:03:48 +0100 |
---|---|---|
committer | Jens Axboe | 2017-03-25 03:34:39 +0100 |
commit | 869ab90f0ae0002ce6e9d3a5c75156ae8de48ffc (patch) | |
tree | 22ff97e02c266e84658d535d63107f84e67fc059 /include/linux/genhd.h | |
parent | block: remove outdated part of blkdev_issue_flush() comment (diff) | |
download | kernel-qcow2-linux-869ab90f0ae0002ce6e9d3a5c75156ae8de48ffc.tar.gz kernel-qcow2-linux-869ab90f0ae0002ce6e9d3a5c75156ae8de48ffc.tar.xz kernel-qcow2-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/genhd.h')
-rw-r--r-- | include/linux/genhd.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 76f39754e7b0..9e11082c7f9b 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -159,11 +159,11 @@ struct badblocks; #if defined(CONFIG_BLK_DEV_INTEGRITY) struct blk_integrity { - struct blk_integrity_profile *profile; - unsigned char flags; - unsigned char tuple_size; - unsigned char interval_exp; - unsigned char tag_size; + const struct blk_integrity_profile *profile; + unsigned char flags; + unsigned char tuple_size; + unsigned char interval_exp; + unsigned char tag_size; }; #endif /* CONFIG_BLK_DEV_INTEGRITY */ |