Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 1 participant 1 message Jan 3, 2017 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Linus,

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

drivers/pinctrl/pinctrl-amd.c: In function 'amd_gpio_dbg_show':
drivers/pinctrl/pinctrl-amd.c:210:3: warning: 'pin_num' may be used uninitialized in this function [-Wmaybe-uninitialized]
for (; i < pin_num; i++) {
^
drivers/pinctrl/pinctrl-amd.c:172:21: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]

  unsigned int bank, i, pin_num;
                     ^

Introduced by commit

3bfd44306c65 ("pinctrl: amd: Add support for additional GPIO")

Signature · 2 lines
Cheers,
Stephen Rothwell