]> git.baikalelectronics.ru Git - kernel.git/commit
block: constify struct blk_integrity_profile
authorEric Biggers <ebiggers@google.com>
Sat, 25 Mar 2017 01:03:48 +0000 (18:03 -0700)
committerJens Axboe <axboe@fb.com>
Sat, 25 Mar 2017 02:34:39 +0000 (20:34 -0600)
commit239250dbcf61ce8bb104dc3997bcc9f614da3969
tree22ff97e02c266e84658d535d63107f84e67fc059
parent422a227efefad8e33baec17e0f78cc584ac840bb
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>
block/blk-integrity.c
block/t10-pi.c
include/linux/genhd.h
include/linux/t10-pi.h