qla2xxx: Remove duplicate __iomem annotation
Subsystems (3)
PATCH 1/1 qla2xxx: Remove duplicate __iomem annotation
The device_reg_t type now has __iomem annotation.
Sparse is warning about this:drivers/scsi/qla2xxx/qla_init.c:2040:22: warning: duplicate [noderef] drivers/scsi/qla2xxx/qla_iocb.c:477:22: warning: duplicate [noderef] drivers/scsi/qla2xxx/qla_iocb.c:1866:22: warning: duplicate [noderef] drivers/scsi/qla2xxx/qla_dbg.c:632:22: warning: duplicate [noderef] drivers/scsi/qla2xxx/qla_target.c:1435:22: warning: duplicate [noderef]
Introduced by commit:f73cb695d3eccd171f03ed194e72d67732b17487
("[SCSI] qla2xxx: Add support for ISP2071.")
Signed-off-by Emil Goode <[email protected]>
--- drivers/scsi/qla2xxx/qla_dbg.c | 2 +- drivers/scsi/qla2xxx/qla_init.c | 2 +- drivers/scsi/qla2xxx/qla_iocb.c | 4 ++-- drivers/scsi/qla2xxx/qla_target.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
drivers/scsi/qla2xxx/qla_dbg.c +1 -1
@@ -629,7 +629,7 @@ qla25xx_copy_mq(struct qla_hw_data *ha, void *ptr, uint32_t **last_chain)uint32_t cnt, que_idx;uint8_t que_cnt;struct qla2xxx_mq_chain *mq = ptr; -device_reg_t __iomem *reg; +device_reg_t *reg;if (!ha->mqenable ||IS_QLA83XX (ha) ||IS_QLA27XX (ha))return ptr;
drivers/scsi/qla2xxx/qla_init.c +1 -1
@@ -2037,7 +2037,7 @@ void qla24xx_config_rings(struct scsi_qla_host *vha) {struct qla_hw_data *ha = vha->hw; -device_reg_t __iomem *reg =ISP_QUE_REG (ha,0 ); +device_reg_t *reg =ISP_QUE_REG (ha,0 );struct device_reg_2xxx __iomem *ioreg = &ha->iobase->isp;struct qla_msix_entry *msix;struct init_cb_24xx *icb;
drivers/scsi/qla2xxx/qla_iocb.c +2 -2
@@ -474,7 +474,7 @@ void qla2x00_start_iocbs(struct scsi_qla_host *vha, struct req_que *req) { struct qla_hw_data *ha = vha->hw; -device_reg_t __iomem *reg =ISP_QUE_REG (ha, req->id); +device_reg_t *reg =ISP_QUE_REG (ha, req->id);if (IS_P3P_TYPE (ha)) {qla82xx_start_iocbs (vha);
@@ -1863,7 +1863,7 @@ qla2x00_alloc_iocbs(scsi_qla_host_t *vha, srb_t *sp) {struct qla_hw_data *ha = vha->hw;struct req_que *req = ha->req_q_map[0 ]; -device_reg_t __iomem *reg =ISP_QUE_REG (ha, req->id); +device_reg_t *reg =ISP_QUE_REG (ha, req->id);uint32_t index, handle;request_t *pkt;uint16_t cnt, req_cnt;
drivers/scsi/qla2xxx/qla_target.c +1 -1
@@ -1432,7 +1432,7 @@ static int qlt_check_reserve_free_req(struct scsi_qla_host *vha, uint32_t req_cnt) {struct qla_hw_data *ha = vha->hw; -device_reg_t __iomem *reg = ha->iobase; +device_reg_t *reg = ha->iobase;uint32_t cnt;if (vha->req->cnt < (req_cnt +2 )) {
Signature · 1 line
1.7.10.4
Looks good,
Reviewed-by Christoph Hellwig <[email protected]>