From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Date: Fri, 26 Aug 2011 17:16:25 +0000 Subject: Re: [lm-sensors] Odd warning in lm90.c (and other drivers) Message-Id: <20110826171625.GA5900@ericsson.com> List-Id: References: <1314377205.2796.90.camel@groeck-laptop> In-Reply-To: <1314377205.2796.90.camel@groeck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: lm-sensors@vger.kernel.org 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@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors