On Wed, Jan 11, 2017 at 3:36 PM, Arnd Bergmann <arnd@xxxxxxxx> wrote: > Since gpio_dev->hwbank_num is now a variable, the compiler cannot > figure out if pin_num is initialized at all: > > 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] > > This adds a 'default' statement to make that case well-defined. > > Fixes: 3bfd44306c65 ("pinctrl: amd: Add support for additional GPIO") > Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html