summaryrefslogtreecommitdiff
path: root/drivers/nvme
diff options
context:
space:
mode:
authorKanchan Joshi <joshi.k@samsung.com>2024-07-30 16:01:37 +0530
committerKeith Busch <kbusch@kernel.org>2024-07-31 07:40:10 -0700
commit73d148ccb9e1b62cdcb65e1c6a461229446a55a2 (patch)
tree1f6d91f888f87a7c4582b79897ed039714c0b1b8 /drivers/nvme
parent6339b7edada2d0c4661bc4200f1adfc80f2e24aa (diff)
nvme: change data type of lba_shift
u8 fits the need, so stop using int for it. Signed-off-by: Kanchan Joshi <joshi.k@samsung.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/nvme.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index c6386af76d24..6039dc78b36e 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -470,7 +470,7 @@ struct nvme_ns_head {
struct nvme_effects_log *effects;
u64 nuse;
unsigned ns_id;
- int lba_shift;
+ u8 lba_shift;
u16 ms;
u16 pi_size;
u8 pi_type;