scsi: qla2xxx: fix unused function warning
Subsystems (2)
PATCH 1/1 scsi: qla2xxx: fix unused function warning
In what seems to be a mismatch between the scsi-fixes branch and the scsi-mkp/for-next branch, a newly introduced variable from one patch got obsoleted in another one:
drivers/scsi/qla2xxx/qla_os.c: In function '__qla2x00_abort_all_cmds':drivers/scsi/qla2xxx/qla_os.c:1791:11: error: unused variable 'status' [-Werror=unused-variable]
Remove the variable again.
---
Maybe check carefully that the merge in linux-next is otherwise correct
--- drivers/scsi/qla2xxx/qla_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_os.c +1 -1
@@ -1788,7 +1788,7 @@ static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res,static void __qla2x00_abort_all_cmds (struct qla_qpair *qp,int res) { -int cnt, status; +int cnt;unsigned long flags;srb_t *sp;scsi_qla_host_t *vha = qp->vha;
Signature · 1 line
2.20.0
Quoted 20 lines · Arnd Bergmann
In what seems to be a mismatch between the scsi-fixes branch and the scsi-mkp/for-next branch, a newly introduced variable from one patch got obsoleted in another one:
drivers/scsi/qla2xxx/qla_os.c: In function '__qla2x00_abort_all_cmds':drivers/scsi/qla2xxx/qla_os.c:1791:11: error: unused variable 'status' [-Werror=unused-variable]> Remove the variable again.Fixes c4e521b654e1 ("scsi: qla2xxx: Split the __qla2x00_abort_all_cmds() function"Fixes f2ffd4e5bc7b ("scsi: qla2xxx: Timeouts occur on surprise removal of QLogic adapter"Signed-off-by Arnd Bergmann <[email protected]>>---Maybe check carefully that the merge in linux-next is otherwise correct
---drivers/scsi/qla2xxx/qla_os.c|2 +--1 file changed, 1 insertion(+-), 1 deletion(-)drivers/scsi/qla2xxx/qla_os.c +1
-1--- a/drivers/scsi/qla2xxx/qla_os.c +-+-+- b/drivers/scsi/qla2xxx/qla_os.c
Quoted 4 lines
@@-1788,7 +-1788,7 @@static void qla2x00_abort_srb(struct
qla_qpair*qp,srb_t*sp, const int res, static void__qla2x00_abort_all_cmds(struct qla_qpair *qp, int res)
{>- int cnt, status;>+- int cnt;> unsigned long flags;>srb_t*sp;>scsi_qla_host_t*vha =qp->vha;
When I prepared commit c4e521b654e1 I verified that my patch did not produce any warnings when building with W=1. So something must be wrong at your side. Did you perhaps start from linux-next to prepare this patch? If so, please submit this patch to Stephen Rothwell.
Bart.
Quoted 30 lines · Bart Van Assche
Quoted 28 lines · Arnd Bergmann
In what seems to be a mismatch between the scsi-fixes branch and the scsi-mkp/for-next branch, a newly introduced variable from one patch got obsoleted in another one:
drivers/scsi/qla2xxx/qla_os.c: In function '__qla2x00_abort_all_cmds':drivers/scsi/qla2xxx/qla_os.c:1791:11: error: unused variable 'status' [-Werror=unused-variable]Remove the variable again.
Fixes c4e521b654e1 ("scsi: qla2xxx: Split the __qla2x00_abort_all_cmds() function")Fixes f2ffd4e5bc7b ("scsi: qla2xxx: Timeouts occur on surprise removal of QLogic adapter")Signed-off-by Arnd Bergmann <[email protected]>---
Maybe check carefully that the merge in linux-next is otherwise correct--- drivers/scsi/qla2xxx/qla_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/qla2xxx/qla_os.c +1
-1@@ -1788,7 +1788,7 @@ static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res,static void __qla2x00_abort_all_cmds (struct qla_qpair *qp,int res) { -int cnt, status; +int cnt;
Quoted 8 lines
drivers/scsi/qla2xxx/qla_os.c static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res, · line 1794
Quoted 3 lines
drivers/scsi/qla2xxx/qla_os.c +0
-0unsigned long flags;srb_t *sp;scsi_qla_host_t *vha = qp->vha;When I prepared commit
c4e521b654e1I verified that my patch did not produce any warnings when building with W=1. So something must be wrong at your side. Did you perhaps start from linux-next to prepare this patch? If so, please submit this patch to Stephen Rothwell.
Yes, I tried to make clear that the two branches are fine by themselves, sorry if I was still ambiguous. The patch is currently only needed on linux-next as far as I can tell, but we should avoid getting the same error when the branches are merged in mainline.
Arnd
Quoted 51 lines · Arnd Bergmann
Quoted 41 lines · Bart Van Assche
Quoted 37 lines · Arnd Bergmann
In what seems to be a mismatch between the scsi-fixes branch and the scsi-mkp/for-next branch, a newly introduced variable from one patch got obsoleted in another one:
drivers/scsi/qla2xxx/qla_os.c: In function '__qla2x00_abort_all_cmds':drivers/scsi/qla2xxx/qla_os.c:1791:11: error: unused variable 'status' [-Werror=unused-variable]Remove the variable again.
Fixes c4e521b654e1 ("scsi: qla2xxx: Split the
__qla2x00_abort_all_cmds()function")Fixes f2ffd4e5bc7b ("scsi: qla2xxx: Timeouts occur on surpriseremoval of QLogic adapter")
Signed-off-by Arnd Bergmann <[email protected]>---
Maybe check carefully that the merge in linux-next is otherwise correct--- drivers/scsi/qla2xxx/qla_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/qla2xxx/qla_os.c +1
-1@@ -1788,7 +1788,7 @@ static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res, static void __qla2x00_abort_all_cmds(struct qla_qpair *qp, int res) { - int cnt, status; + int cnt;unsigned long flags;srb_t *sp;Quoted 1 line
scsi_qla_host_t *vha = qp->vha;Quoted 7 lines
When I prepared commit
c4e521b654e1I verified that my patch did not produce any
warnings when building with W=1. So something must be wrong at your side. Did you
perhaps start from linux-next to prepare this patch? If so, please submit this
patch to Stephen Rothwell.
Quoted 4 lines
Yes, I tried to make clear that the two branches are fine by themselves, sorry if I was still ambiguous. The patch is currently only needed on linux-next as far as I can tell, but we should avoid getting the same error when the branches are merged in mainline.
It should be fixed in linux-next as of the next release. It was just a problem with the original merge which I fixed when I did my version of it.
James