Skip to contentSkip to conversation

linux-next: build warning after merge of the scsi tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Sep 13, 2016 – Sep 15, 2016 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi James,

After merging the scsi tree, today's linux-next build (powerpc allyesconfig) produced this warning:

drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c: In function 'ibmvscsis_rdma':
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c:3190:20: warning: unused variable 'srp' [-Wunused-variable]

    struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf;
                    ^

Introduced by commit

812902159d41 ("scsi: ibmvscsis: Code cleanup of print statements")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 5 lines · Stephen Rothwell

Hi James,

After merging the scsi tree, today's linux-next build (powerpc allyesconfig) produced this warning:

Quoted 7 lines

drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c: In function 'ibmvscsis_rdma':
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c:3190:20: warning: unused variable 'srp' [-Wunused-variable]

    struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf;
                    ^

Introduced by commit

     >  812902159d41 ("scsi: ibmvscsis: Code cleanup of print statements")

Looks like cleaning up the print statement made this variable unused so deleting that line would be best.

-Bryant

#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bryant" == Bryant G Ly <[email protected]> writes:

Quoted 5 lines · Stephen Rothwell
Quoted 5 lines

Hi James,

After merging the scsi tree, today's linux-next build (powerpc allyesconfig) produced this warning:

Quoted 8 lines
Quoted 8 lines

drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c: In function 'ibmvscsis_rdma': drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c:3190:20:
warning: unused variable 'srp' [-Wunused-variable] struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf; ^

Introduced by commit

812902159d41 ("scsi: ibmvscsis: Code cleanup of print statements")

Bryant> Looks like cleaning up the print statement made this variable Bryant> unused so deleting that line would be best.

Please submit a patch to do so.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering