All of lore.kernel.org
 help / color / mirror / Atom feed
* [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitial
@ 2012-09-14 23:57 ` Fengguang Wu
  0 siblings, 0 replies; 6+ messages in thread
From: Fengguang Wu @ 2012-09-14 23:57 UTC (permalink / raw)
  To: Saurav Kashyap
  Cc: Yuanhan Liu, kernel-janitors, James Bottomley, Chad Dupuis, linux-scsi

Hi Saurav,

FYI, there are new compile warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
head:   71cfff4af0525891941199b142b759d00b293959
commit: 387fddaa3564503c9f82d091d2ebe390f3af62a1 [92/128] [SCSI] qla2xxx: Implementation of bidirectional.
config: x86_64-allmodconfig

All error/warnings:

drivers/scsi/qla2xxx/qla_isr.c: In function 'qla2x00_status_entry':
drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/scsi/qla2xxx/qla_isr.c:1558:11: note: 'rval' was declared here

It could be uninitialized due to the test in line 1598.

vim +1684 drivers/scsi/qla2xxx/qla_isr.c
  1596         switch (comp_status) {
  1597         case CS_COMPLETE:
> 1598                 if (scsi_status = 0) {
  1599                         bsg_job->reply->reply_payload_rcv_len   1600
  bsg_job->reply_payload.payload_len;
  1601                         rval = EXT_STATUS_OK;
  1602                 }
  1603                 goto done;
  1604 
...
  1674			ql_dbg(ql_dbg_user, vha, 0x70bb,
  1675			    "Command completed with completion status=0x%x "
  1676			    "thread_id=%d\n", comp_status, thread_id);
  1677			rval = EXT_STATUS_ERR;
  1678			break;
  1679		}
  1680			bsg_job->reply->reply_payload_rcv_len = 0;
  1681	
  1682	done:
  1683		/* Return the vendor specific reply to API */
> 1684		bsg_job->reply->reply_data.vendor_reply.vendor_rsp[0] = rval;
  1685		bsg_job->reply_len = sizeof(struct fc_bsg_reply);
  1686		/* Always return DID_OK, bsg will send the vendor specific response
  1687		 * in this case only */
  1688		sp->done(vha, sp, (DID_OK << 6));
  1689	
  1690	}

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu, Yuanhan Liu                              Intel Corporation

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitialized in this function
@ 2012-09-14 23:57 ` Fengguang Wu
  0 siblings, 0 replies; 6+ messages in thread
From: Fengguang Wu @ 2012-09-14 23:57 UTC (permalink / raw)
  To: Saurav Kashyap
  Cc: Yuanhan Liu, kernel-janitors, James Bottomley, Chad Dupuis, linux-scsi

Hi Saurav,

FYI, there are new compile warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
head:   71cfff4af0525891941199b142b759d00b293959
commit: 387fddaa3564503c9f82d091d2ebe390f3af62a1 [92/128] [SCSI] qla2xxx: Implementation of bidirectional.
config: x86_64-allmodconfig

All error/warnings:

drivers/scsi/qla2xxx/qla_isr.c: In function 'qla2x00_status_entry':
drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/scsi/qla2xxx/qla_isr.c:1558:11: note: 'rval' was declared here

It could be uninitialized due to the test in line 1598.

vim +1684 drivers/scsi/qla2xxx/qla_isr.c
  1596         switch (comp_status) {
  1597         case CS_COMPLETE:
> 1598                 if (scsi_status == 0) {
  1599                         bsg_job->reply->reply_payload_rcv_len =
  1600
  bsg_job->reply_payload.payload_len;
  1601                         rval = EXT_STATUS_OK;
  1602                 }
  1603                 goto done;
  1604 
...
  1674			ql_dbg(ql_dbg_user, vha, 0x70bb,
  1675			    "Command completed with completion status=0x%x "
  1676			    "thread_id=%d\n", comp_status, thread_id);
  1677			rval = EXT_STATUS_ERR;
  1678			break;
  1679		}
  1680			bsg_job->reply->reply_payload_rcv_len = 0;
  1681	
  1682	done:
  1683		/* Return the vendor specific reply to API */
> 1684		bsg_job->reply->reply_data.vendor_reply.vendor_rsp[0] = rval;
  1685		bsg_job->reply_len = sizeof(struct fc_bsg_reply);
  1686		/* Always return DID_OK, bsg will send the vendor specific response
  1687		 * in this case only */
  1688		sp->done(vha, sp, (DID_OK << 6));
  1689	
  1690	}

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu, Yuanhan Liu                              Intel Corporation

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used unini
  2012-09-14 23:57 ` [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitialized in this function Fengguang Wu
@ 2012-09-17 12:35   ` James Bottomley
  -1 siblings, 0 replies; 6+ messages in thread
From: James Bottomley @ 2012-09-17 12:35 UTC (permalink / raw)
  To: Fengguang Wu
  Cc: Saurav Kashyap, Yuanhan Liu, kernel-janitors, Chad Dupuis, linux-scsi

T24gU2F0LCAyMDEyLTA5LTE1IGF0IDA3OjU3ICswODAwLCBGZW5nZ3VhbmcgV3Ugd3JvdGU6DQo+
IEhpIFNhdXJhdiwNCj4gDQo+IEZZSSwgdGhlcmUgYXJlIG5ldyBjb21waWxlIHdhcm5pbmdzIHNo
b3cgdXAgaW4NCj4gDQo+IHRyZWU6ICAgZ2l0Oi8vZ2l0Lmtlcm5lbC5vcmcvcHViL3NjbS9saW51
eC9rZXJuZWwvZ2l0L2plamIvc2NzaS5naXQgZm9yLW5leHQNCj4gaGVhZDogICA3MWNmZmY0YWYw
NTI1ODkxOTQxMTk5YjE0MmI3NTlkMDBiMjkzOTU5DQo+IGNvbW1pdDogMzg3ZmRkYWEzNTY0NTAz
YzlmODJkMDkxZDJlYmUzOTBmM2FmNjJhMSBbOTIvMTI4XSBbU0NTSV0gcWxhMnh4eDogSW1wbGVt
ZW50YXRpb24gb2YgYmlkaXJlY3Rpb25hbC4NCj4gY29uZmlnOiB4ODZfNjQtYWxsbW9kY29uZmln
DQ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	[flat|nested] 6+ messages in thread

* Re: [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitialized in this function
@ 2012-09-17 12:35   ` James Bottomley
  0 siblings, 0 replies; 6+ messages in thread
From: James Bottomley @ 2012-09-17 12:35 UTC (permalink / raw)
  To: Fengguang Wu
  Cc: Saurav Kashyap, Yuanhan Liu, kernel-janitors, Chad Dupuis, linux-scsi

On Sat, 2012-09-15 at 07:57 +0800, Fengguang Wu wrote:
> Hi Saurav,
> 
> FYI, there are new compile warnings show up in
> 
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
> head:   71cfff4af0525891941199b142b759d00b293959
> commit: 387fddaa3564503c9f82d091d2ebe390f3af62a1 [92/128] [SCSI] qla2xxx: Implementation of bidirectional.
> config: x86_64-allmodconfig
> 
> All error/warnings:
> 
> drivers/scsi/qla2xxx/qla_isr.c: In function 'qla2x00_status_entry':
> drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitialized in this function [-Wmaybe-uninitialized]
> drivers/scsi/qla2xxx/qla_isr.c:1558:11: note: 'rval' was declared here

Hmm, that's actually fixed by a later patch in the series:

commit 2d7a7dc9bf4772b6ed711cadeee0bce9bace2a94
Author: Saurav Kashyap <saurav.kashyap@qlogic.com>
Date:   Wed Aug 22 14:21:12 2012 -0400

    [SCSI] qla2xxx: Fix rval may be used uninitialized in this function
warning.

Note to qlogic: please don't do this in future.  I'll combine these two
patches so we get a single series with no introduced and later fixed
warnings.

James


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used unini
  2012-09-17 12:35   ` [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitialized in this function James Bottomley
@ 2012-09-17 16:13     ` Saurav Kashyap
  -1 siblings, 0 replies; 6+ messages in thread
From: Saurav Kashyap @ 2012-09-17 16:13 UTC (permalink / raw)
  To: James Bottomley, Fengguang Wu
  Cc: Yuanhan Liu, kernel-janitors, Chad Dupuis, linux-scsi




>On Sat, 2012-09-15 at 07:57 +0800, Fengguang Wu wrote:
>> Hi Saurav,
>>
>> FYI, there are new compile warnings show up in
>>
>> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git
>>for-next
>> head:   71cfff4af0525891941199b142b759d00b293959
>> commit: 387fddaa3564503c9f82d091d2ebe390f3af62a1 [92/128] [SCSI]
>>qla2xxx: Implementation of bidirectional.
>> config: x86_64-allmodconfig
>>
>> All error/warnings:
>>
>> drivers/scsi/qla2xxx/qla_isr.c: In function 'qla2x00_status_entry':
>> drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used
>>uninitialized in this function [-Wmaybe-uninitialized]
>> drivers/scsi/qla2xxx/qla_isr.c:1558:11: note: 'rval' was declared here
>
>Hmm, that's actually fixed by a later patch in the series:
>
>commit 2d7a7dc9bf4772b6ed711cadeee0bce9bace2a94
>Author: Saurav Kashyap <saurav.kashyap@qlogic.com>
>Date:   Wed Aug 22 14:21:12 2012 -0400
>
>    [SCSI] qla2xxx: Fix rval may be used uninitialized in this function
>warning.
>
>Note to qlogic: please don't do this in future.  I'll combine these two
>patches so we get a single series with no introduced and later fixed
>warnings.

Hi James,
We will take care of this in future.

Thanks,
~Saurav


This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitialized in this function
@ 2012-09-17 16:13     ` Saurav Kashyap
  0 siblings, 0 replies; 6+ messages in thread
From: Saurav Kashyap @ 2012-09-17 16:13 UTC (permalink / raw)
  To: James Bottomley, Fengguang Wu
  Cc: Yuanhan Liu, kernel-janitors, Chad Dupuis, linux-scsi




>On Sat, 2012-09-15 at 07:57 +0800, Fengguang Wu wrote:
>> Hi Saurav,
>>
>> FYI, there are new compile warnings show up in
>>
>> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git
>>for-next
>> head:   71cfff4af0525891941199b142b759d00b293959
>> commit: 387fddaa3564503c9f82d091d2ebe390f3af62a1 [92/128] [SCSI]
>>qla2xxx: Implementation of bidirectional.
>> config: x86_64-allmodconfig
>>
>> All error/warnings:
>>
>> drivers/scsi/qla2xxx/qla_isr.c: In function 'qla2x00_status_entry':
>> drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used
>>uninitialized in this function [-Wmaybe-uninitialized]
>> drivers/scsi/qla2xxx/qla_isr.c:1558:11: note: 'rval' was declared here
>
>Hmm, that's actually fixed by a later patch in the series:
>
>commit 2d7a7dc9bf4772b6ed711cadeee0bce9bace2a94
>Author: Saurav Kashyap <saurav.kashyap@qlogic.com>
>Date:   Wed Aug 22 14:21:12 2012 -0400
>
>    [SCSI] qla2xxx: Fix rval may be used uninitialized in this function
>warning.
>
>Note to qlogic: please don't do this in future.  I'll combine these two
>patches so we get a single series with no introduced and later fixed
>warnings.

Hi James,
We will take care of this in future.

Thanks,
~Saurav


This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-17 16:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-14 23:57 [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitial Fengguang Wu
2012-09-14 23:57 ` [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitialized in this function Fengguang Wu
2012-09-17 12:35 ` [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used unini James Bottomley
2012-09-17 12:35   ` [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitialized in this function James Bottomley
2012-09-17 16:13   ` [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used unini Saurav Kashyap
2012-09-17 16:13     ` [scsi:for-next 92/128] drivers/scsi/qla2xxx/qla_isr.c:1684:56: warning: 'rval' may be used uninitialized in this function Saurav Kashyap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.