Re: scsi: lpfc_scsi: Remove unused variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 07, 2012 at 01:12:56AM -0500, Jonathan Nieder wrote:
> Hi Richard,
> 
> Richard Yao wrote:
> 
> > This is my first time patch submission. The commit message should
> > explain the issue.
> >
> > commit ba8c7a7a629b736fdc1abceaa3ec49f8820aec08
> > Author: Richard Yao <ryao@xxxxxxxxxxxxxxxxx>
> > Date:   Thu Jun 7 01:44:31 2012 -0400
> >
> >     scsi: lpfc_scsi: Remove unused variables
> >
> >     Kernels built with CONFIG_SCSI_LPFC fail to compile due to the use of
> >     -Werror=unused-variable. We solve that by removing some unused
> >     variables.
> 
> Wouldn't a saner fix be to stop using -Werror=unused-variable, or am I
> missing something subtle?

Yes, that is correct, older versions of gcc, and sometimes newer ones,
get this logic wrong and incorrectly flag variables that really are used
due to bugs in their detection logic.  Don't require a developer to have
a gcc version that is different from what the rest of the kernel
requires, as that is not allowed.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux