tree: https://github.com/jonhunter/linux tegra/for-next head: 6915f42702bbfded22b4121a42fb2e653b51dfe0 commit: 9396c239c960ba11e731c588c84bde0373a20172 [10/13] Revert "gpio: tegra: Ensure pinctrl input-enable is set for interrupts" config: sparc-randconfig-s032-20210417 (attached as .config) compiler: sparc-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-280-g2cd6d34e-dirty # https://github.com/jonhunter/linux/commit/9396c239c960ba11e731c588c84bde0373a20172 git remote add jonhunter https://github.com/jonhunter/linux git fetch --no-tags jonhunter tegra/for-next git checkout 9396c239c960ba11e731c588c84bde0373a20172 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=sparc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/gpio/gpio-tegra.c: In function 'tegra_gpio_irq_request_resources': >> drivers/gpio/gpio-tegra.c:591:2: error: 'ret' undeclared (first use in this function); did you mean 'net'? 591 | ret = gpiochip_reqres_irq(chip, d->hwirq); | ^~~ | net drivers/gpio/gpio-tegra.c:591:2: note: each undeclared identifier is reported only once for each function it appears in drivers/gpio/gpio-tegra.c:596:1: error: control reaches end of non-void function [-Werror=return-type] 596 | } | ^ cc1: some warnings being treated as errors vim +591 drivers/gpio/gpio-tegra.c 66fecef5bde078 Thierry Reding 2020-11-27 583 66fecef5bde078 Thierry Reding 2020-11-27 584 static int tegra_gpio_irq_request_resources(struct irq_data *d) 66fecef5bde078 Thierry Reding 2020-11-27 585 { 66fecef5bde078 Thierry Reding 2020-11-27 586 struct gpio_chip *chip = irq_data_get_irq_chip_data(d); 66fecef5bde078 Thierry Reding 2020-11-27 587 struct tegra_gpio_info *tgi = gpiochip_get_data(chip); 66fecef5bde078 Thierry Reding 2020-11-27 588 9396c239c960ba Jon Hunter 2021-04-17 589 tegra_gpio_enable(tgi, d->hwirq); 66fecef5bde078 Thierry Reding 2020-11-27 590 ae9772caf4b5b3 Jon Hunter 2021-02-05 @591 ret = gpiochip_reqres_irq(chip, d->hwirq); ae9772caf4b5b3 Jon Hunter 2021-02-05 592 if (ret < 0) ae9772caf4b5b3 Jon Hunter 2021-02-05 593 tegra_gpio_disable(tgi, d->hwirq); ae9772caf4b5b3 Jon Hunter 2021-02-05 594 ae9772caf4b5b3 Jon Hunter 2021-02-05 595 return ret; 66fecef5bde078 Thierry Reding 2020-11-27 596 } 66fecef5bde078 Thierry Reding 2020-11-27 597 :::::: The code at line 591 was first introduced by commit :::::: ae9772caf4b5b38fc5f2767ffc2422c68f0d37eb gpio: tegra: Disable the GPIO if requesting IRQ resources fails :::::: TO: Jon Hunter :::::: CC: Jon Hunter --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org