NVMe: Add result to nvme_get_features
Subsystems (2)
PATCH 1/1 NVMe: Add result to nvme_get_features
Signed-off-by Keith Busch <keith.busch at intel.com>
--- drivers/block/nvme.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/block/nvme.c +4 -4
@@ -840,8 +840,8 @@ static int nvme_identify(struct nvme_dev *dev, unsigned nsid, unsigned cns,return nvme_submit_admin_cmd (dev, &c,NULL ); } -static int nvme_get_features (struct nvme_dev *dev,unsigned fid, -unsigned nsid,dma_addr_t dma_addr) +static int nvme_get_features (struct nvme_dev *dev,unsigned fid,unsigned nsid, +dma_addr_t dma_addr,u32 *result) {struct nvme_command c;
@@ -851,7 +851,7 @@ static int nvme_get_features(struct nvme_dev *dev, unsigned fid, c.features.prp1 =cpu_to_le64 (dma_addr); c.features.fid =cpu_to_le32 (fid); -return nvme_submit_admin_cmd (dev, &c,NULL ); +return nvme_submit_admin_cmd (dev, &c, result); } static int nvme_set_features(struct nvme_dev *dev, unsigned fid,
@@ -1528,7 +1528,7 @@ static int __devinit nvme_dev_add(struct nvme_dev *dev)continue ; res =nvme_get_features (dev,NVME_FEAT_LBA_RANGE , i, - dma_addr +4096 ); + dma_addr +4096 ,NULL );if (res)continue ;
Signature · 1 line
1.7.0.4
Matthew Wilcox
AppliedPATCH 1/1 NVMe: Add result to nvme_get_features
Quoted 1 line · Keith Busch
Signed-off-by Keith Busch <keith.busch at intel.com>
Thanks, applied, with another changelog :-)