Linux-Next Archive on lore.kernel.org
 help / color / Atom feed
* linux-next: build warning after merge of the hwmon-staging tree
@ 2020-02-10 22:23 Stephen Rothwell
  2020-02-11  0:24 ` Guenter Roeck
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2020-02-10 22:23 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Nuno Sá

[-- Attachment #1: Type: text/plain, Size: 523 bytes --]

Hi all,

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

drivers/hwmon/axi-fan-control.c: In function 'axi_fan_control_probe':
drivers/hwmon/axi-fan-control.c:419:26: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
  419 |   (unsigned long long)res->start, ctl->base);
      |                          ^~

Introduced by commit

  690dd9ce04f6 ("hwmon: Support ADI Fan Control IP")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: linux-next: build warning after merge of the hwmon-staging tree
  2020-02-10 22:23 linux-next: build warning after merge of the hwmon-staging tree Stephen Rothwell
@ 2020-02-11  0:24 ` Guenter Roeck
  0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2020-02-11  0:24 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Nuno Sá

On 2/10/20 2:23 PM, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the hwmon-staging tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
> 
> drivers/hwmon/axi-fan-control.c: In function 'axi_fan_control_probe':
> drivers/hwmon/axi-fan-control.c:419:26: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    419 |   (unsigned long long)res->start, ctl->base);
>        |                          ^~
> 
> Introduced by commit
> 
>    690dd9ce04f6 ("hwmon: Support ADI Fan Control IP")
> 

Fixed up (res was actually leftover from an earlier patch version
and unused).

Guenter

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

* linux-next: build warning after merge of the hwmon-staging tree
@ 2019-07-01  2:26 Stephen Rothwell
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2019-07-01  2:26 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Boyang Yu

[-- Attachment #1: Type: text/plain, Size: 872 bytes --]

Hi all,

After merging the hwmon-staging tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

drivers/hwmon/lm90.c: In function 'lm90_write_convrate':
drivers/hwmon/lm90.c:597:42: warning: 'config_stop' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (data->flags & LM90_PAUSE_FOR_CONFIG && config_orig != config_stop)
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hwmon/lm90.c:598:3: warning: 'config_orig' may be used uninitialized in this function [-Wmaybe-uninitialized]
   i2c_smbus_write_byte_data(client, LM90_REG_W_CONFIG1,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        config_orig);
        ~~~~~~~~~~~~

Introduced by commit

  479a503fa073 ("hwmon: (lm90) Fix max6658 sporadic wrong temperature reading")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* linux-next: build warning after merge of the hwmon-staging tree
@ 2019-06-06  0:34 Stephen Rothwell
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2019-06-06  0:34 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Linux Next Mailing List, Linux Kernel Mailing List,
	Krzysztof Adamski, Alexander Sverdlin

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

Hi all,

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

drivers/hwmon/pmbus/adm1275.c: In function 'adm1275_write_pmon_config':
drivers/hwmon/pmbus/adm1275.c:179:23: warning: unused variable 'data' [-Wunused-variable]
  struct adm1275_data *data = to_adm1275_data(info);
                       ^~~~

Introduced by commit

  438318513375 ("hwmon: (pmbus/adm1275) support PMBUS_VIRT_*_SAMPLES")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10 22:23 linux-next: build warning after merge of the hwmon-staging tree Stephen Rothwell
2020-02-11  0:24 ` Guenter Roeck
  -- strict thread matches above, loose matches on Subject: below --
2019-07-01  2:26 Stephen Rothwell
2019-06-06  0:34 Stephen Rothwell

Linux-Next Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-next/0 linux-next/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-next linux-next/ https://lore.kernel.org/linux-next \
		linux-next@vger.kernel.org
	public-inbox-index linux-next

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-next


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git