Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Nov 15, 2016 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Jarkko,

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

drivers/char/tpm/tpm_of.c: In function 'read_log_of':
drivers/char/tpm/tpm_of.c:37:8: warning: 'np' may be used uninitialized in this function [-Wmaybe-uninitialized]

  sizep = of_get_property(np, "linux,sml-size", NULL);
        ^

Introduced by commit

4a45d9669ac1 ("tpm: replace of_find_node_by_name() with dev of_node property")

This commit is just wrong :-(

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 7 lines · Stephen Rothwell

Hi Jarkko,

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

drivers/char/tpm/tpm_of.c: In function 'read_log_of':
drivers/char/tpm/tpm_of.c:37:8: warning: 'np' may be used uninitialized in this function [-Wmaybe-uninitialized]

Quoted 8 lines
  sizep = of_get_property(np, "linux,sml-size", NULL);
        ^

Introduced by commit

4a45d9669ac1 ("tpm: replace of_find_node_by_name() with dev of_node property")

This commit is just wrong :-(

It really is. I'll drop it from my tree.

Quoted 3 lines
Signature · 2 lines
Cheers,
Stephen Rothwell

/Jarkko