summaryrefslogtreecommitdiff
path: root/drivers/nvme/host/nvme.h
diff options
context:
space:
mode:
authorKanchan Joshi <joshi.k@samsung.com>2024-07-30 13:31:37 +0300
committerKeith Busch <kbusch@kernel.org>2024-07-31 17:40:10 +0300
commit73d148ccb9e1b62cdcb65e1c6a461229446a55a2 (patch)
tree1f6d91f888f87a7c4582b79897ed039714c0b1b8 /drivers/nvme/host/nvme.h
parent6339b7edada2d0c4661bc4200f1adfc80f2e24aa (diff)
downloadlinux-73d148ccb9e1b62cdcb65e1c6a461229446a55a2.tar.xz
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/host/nvme.h')
-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;