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

From: Stephen Rothwell
Date: Mon Jan 02 2017 - 23:37:16 EST


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")

--
Cheers,
Stephen Rothwell