Re: [PATCH] gpio: aspeed: Add debounce support

From: kbuild test robot
Date: Mon Feb 20 2017 - 11:37:21 EST


Hi Andrew,

[auto build test WARNING on next-20170220]
[cannot apply to gpio/for-next v4.9-rc8 v4.9-rc7 v4.9-rc6 v4.10]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Andrew-Jeffery/gpio-aspeed-Add-debounce-support/20170220-231310
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

drivers/gpio/gpio-aspeed.c: In function 'aspeed_gpio_set_config':
>> drivers/gpio/gpio-aspeed.c:733:9: warning: 'rc' may be used uninitialized in this function [-Wmaybe-uninitialized]
return rc;
^~

vim +/rc +733 drivers/gpio/gpio-aspeed.c

717 switch (param) {
718 case PIN_CONFIG_INPUT_DEBOUNCE:
719 rc = aspeed_gpio_set_debounce(chip, offset, arg);
720 break;
721 case PIN_CONFIG_BIAS_DISABLE:
722 case PIN_CONFIG_BIAS_PULL_DOWN:
723 case PIN_CONFIG_DRIVE_STRENGTH:
724 rc = pinctrl_gpio_set_config(offset, config);
725 break;
726 case PIN_CONFIG_DRIVE_OPEN_DRAIN:
727 case PIN_CONFIG_DRIVE_OPEN_SOURCE:
728 /* Fallthrough for emulation, as per datasheet */
729 default:
730 rc = -ENOTSUPP;
731 }
732
> 733 return rc;
734 }
735
736 /*
737 * Any banks not specified in a struct aspeed_bank_props array are assumed to
738 * have the properties:
739 *
740 * { .input = 0xffffffff, .output = 0xffffffff }
741 */

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip