]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: use u32 for nvmet_subsys max_nsid
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Mon, 14 Jun 2021 01:58:48 +0000 (18:58 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jun 2021 13:51:20 +0000 (15:51 +0200)
commita23b25adbdfae4472a1cc63a47130a12d28ef1c5
treee3916135b57461d1f0487b88c7ad06d3a85baed6
parent36c0cd67c074beee201950f105df62eee6b4ade1
nvmet: use u32 for nvmet_subsys max_nsid

Use u32 type for the nsid_max member of the nvmet_subsys structure.
This avoids the type confusion when updating the subsys->nax_nsid from
ns->nsid. This also matches the nvmet_ns->nsid member.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/nvmet.h