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: arm-randconfig-r001-20210417 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
f549176ad976caa3e19edd036df9a7e12770af7c)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
https://github.com/jonhunter/linux/commit/9396c239c960ba11e731c588c84bde0...
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=clang make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/gpio/gpio-tegra.c:591:2: error: use of undeclared
identifier 'ret'
ret = gpiochip_reqres_irq(chip, d->hwirq);
^
drivers/gpio/gpio-tegra.c:592:6: error: use of undeclared identifier 'ret'
if (ret < 0)
^
drivers/gpio/gpio-tegra.c:595:9: error: use of undeclared identifier 'ret'
return ret;
^
3 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for QCOM_SCM
Depends on (ARM || ARM64) && HAVE_ARM_SMCCC
Selected by
- ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) &&
(ARCH_QCOM || COMPILE_TEST && !ARM64 && MMU
vim +/ret +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 <jonathanh(a)nvidia.com>
:::::: CC: Jon Hunter <jonathanh(a)nvidia.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org