Re: Odd warning in lm90.c (and other drivers)

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

 



On Fri, Aug 26, 2011 at 12:53:35PM -0400, Jean Delvare wrote:
> On Fri, 26 Aug 2011 09:46:45 -0700, Guenter Roeck wrote:
> > Hi all,
> > 
> > I sometimes get the following warnings when trying to compile lm90.c:
> > 
> > drivers/hwmon/lm90.c: In function ‘lm90_detect’:
> > drivers/hwmon/lm90.c:1114: warning: ‘chip_id’ may be used uninitialized
> > in this function
> > drivers/hwmon/lm90.c:1114: warning: ‘reg_config1’ may be used
> > uninitialized in this function
> > drivers/hwmon/lm90.c:1114: warning: ‘reg_convrate’ may be used
> > uninitialized in this function
> > drivers/hwmon/lm90.c:1187: warning: ‘reg_emerg2’ may be used
> > uninitialized in this function
> > drivers/hwmon/lm90.c:1187: warning: ‘reg_status2’ may be used
> > uninitialized in this function
> > 
> > This is seen with 3.0-rc3, with the attached configuration file (which
> 
> 3.0-rc3 or 3.1-rc3?
> 
3.1-rc3. Looks like I didn't get enough coffe today. Anyway, the kernel version
does not really matter, at least not too much; I have also seen it with 3.0.3.

Build system runs Ubuntu Lucid, which is there gcc-4.4.3 comes from.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux