Skip to contentSkip to conversation

nvme-pci: fix build error for commit:bc565c15a4fa

PATCH New weiping zhang 2 participants 2 messages Jul 10, 2017 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme-pci: fix build error for commit:bc565c15a4fa

fix build error for:
bc565c15a4fa nvme-pci: add module parameter for io queue depth

Signed-off-by weiping zhang <zhangweiping at didichuxing.com>
---
 drivers/nvme/host/pci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/nvme/host/pci.c +2 -1
index 8470503..48d3ed3 100644
@@ -1912,7 +1912,8 @@ static int nvme_pci_enable(struct nvme_dev *dev)
 
 	dev->ctrl.cap = lo_hi_readq(dev->bar + NVME_REG_CAP);
 
-	dev->q_depth = min_t(int, NVME_CAP_MQES(cap) + 1, io_queue_depth);
+	dev->q_depth = min_t(int, NVME_CAP_MQES(dev->ctrl.cap) + 1,
+				io_queue_depth);
 	dev->db_stride = 1 << NVME_CAP_STRIDE(dev->ctrl.cap);
 	dev->dbs = dev->bar + 4096;
 
Signature · 1 line
2.9.4
maintainer
#1 lore raw

PATCH 1/1 nvme-pci: fix build error for commit:bc565c15a4fa

Done