Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1527278 > unrolled thread

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

Started byStephen Rothwell <sfr@canb.auug.org.au>
First post2016-11-22 08:50 +0100
Last post2016-11-22 23:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  linux-next: build warning after merge of the scsi tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-11-22 08:50 +0100
    Re: linux-next: build warning after merge of the scsi tree "Martin K. Petersen" <martin.petersen@oracle.com> - 2016-11-22 23:30 +0100

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

FromStephen Rothwell <sfr@canb.auug.org.au>
Date2016-11-22 08:50 +0100
Subjectlinux-next: build warning after merge of the scsi tree
Message-ID<sGe01-4cE-9@gated-at.bofh.it>
Hi James,

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

drivers/scsi/hpsa.c: In function 'hpsa_slave_alloc':
drivers/scsi/hpsa.c:2033:5: warning: 'sd' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (!sd)
     ^

Introduced by commit

  4eb307f7b18d ("scsi: hpsa: use bus '3' for legacy HBA devices")

-- 
Cheers,
Stephen Rothwell

[toc] | [next] | [standalone]


#1527987

From"Martin K. Petersen" <martin.petersen@oracle.com>
Date2016-11-22 23:30 +0100
Message-ID<sGrJD-4Po-25@gated-at.bofh.it>
In reply to#1527278
>>>>> "Stephen" == Stephen Rothwell <sfr@canb.auug.org.au> writes:

Stephen,

Stephen> drivers/scsi/hpsa.c: In function 'hpsa_slave_alloc':
Stephen> drivers/scsi/hpsa.c:2033:5: warning: 'sd' may be used
Stephen> uninitialized in this function [-Wmaybe-uninitialized]
Stephen>   if (!sd)
Stephen>      ^

Stephen> Introduced by commit

Stephen>   4eb307f7b18d ("scsi: hpsa: use bus '3' for legacy HBA
Stephen>   devices")

Fixed this up.

Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web