diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-05-27 00:06:37 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2021-06-04 19:07:28 +0300 |
commit | ccde2cbfa31c4d41818a493c1126df05336f8c5a (patch) | |
tree | 375d1017fc6894786c5b4a3c379d4a10f0005fd3 /drivers/md/dm-table.c | |
parent | af4f6cabcc5a2449e6b7663d45227bfcb6b725ec (diff) | |
download | linux-ccde2cbfa31c4d41818a493c1126df05336f8c5a.tar.xz |
dm table: Constify static struct blk_ksm_ll_ops
The only usage of dm_ksm_ll_ops is to make a copy of it to the ksm_ll_ops
field in the blk_keyslot_manager struct. Make it const to allow the
compiler to put it in read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r-- | drivers/md/dm-table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index ee47a332b462..7e88e5e06922 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -1244,7 +1244,7 @@ static int dm_keyslot_evict(struct blk_keyslot_manager *ksm, return args.err; } -static struct blk_ksm_ll_ops dm_ksm_ll_ops = { +static const struct blk_ksm_ll_ops dm_ksm_ll_ops = { .keyslot_evict = dm_keyslot_evict, }; |