[arm-platforms:irq/generic_handle_domain_irq 18/22] drivers/gpio/gpio-pmic-eic-sprd.c:288:38: error: 'girq' undeclared; did you mean 'irq'?
kernel test robot
lkp at intel.com
Tue Jul 27 12:42:00 PDT 2021
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/generic_handle_domain_irq
head: d3126d1af248cba3b70342748d77c2825f37eec2
commit: 491d5e8b66b7409c7f6cd196ce210d5b9156e1cc [18/22] gpio: Bulk conversion from handle_nested_irq() to handle_nested_domain_irq()
config: microblaze-randconfig-r031-20210727 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 10.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=491d5e8b66b7409c7f6cd196ce210d5b9156e1cc
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/generic_handle_domain_irq
git checkout 491d5e8b66b7409c7f6cd196ce210d5b9156e1cc
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=microblaze SHELL=/bin/bash drivers/gpio/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
drivers/gpio/gpio-pmic-eic-sprd.c: In function 'sprd_pmic_eic_irq_handler':
>> drivers/gpio/gpio-pmic-eic-sprd.c:288:38: error: 'girq' undeclared (first use in this function); did you mean 'irq'?
288 | sprd_pmic_eic_toggle_trigger(chip, girq, n);
| ^~~~
| irq
drivers/gpio/gpio-pmic-eic-sprd.c:288:38: note: each undeclared identifier is reported only once for each function it appears in
vim +288 drivers/gpio/gpio-pmic-eic-sprd.c
92da8b9deb8795 Baolin Wang 2018-03-30 262
348f3cde84ab5b Baolin Wang 2018-03-05 263 static irqreturn_t sprd_pmic_eic_irq_handler(int irq, void *data)
348f3cde84ab5b Baolin Wang 2018-03-05 264 {
348f3cde84ab5b Baolin Wang 2018-03-05 265 struct sprd_pmic_eic *pmic_eic = data;
348f3cde84ab5b Baolin Wang 2018-03-05 266 struct gpio_chip *chip = &pmic_eic->chip;
348f3cde84ab5b Baolin Wang 2018-03-05 267 unsigned long status;
491d5e8b66b740 Marc Zyngier 2021-07-25 268 u32 n, val;
348f3cde84ab5b Baolin Wang 2018-03-05 269 int ret;
348f3cde84ab5b Baolin Wang 2018-03-05 270
348f3cde84ab5b Baolin Wang 2018-03-05 271 ret = regmap_read(pmic_eic->map, pmic_eic->offset + SPRD_PMIC_EIC_MIS,
348f3cde84ab5b Baolin Wang 2018-03-05 272 &val);
348f3cde84ab5b Baolin Wang 2018-03-05 273 if (ret)
348f3cde84ab5b Baolin Wang 2018-03-05 274 return IRQ_RETVAL(ret);
348f3cde84ab5b Baolin Wang 2018-03-05 275
348f3cde84ab5b Baolin Wang 2018-03-05 276 status = val & SPRD_PMIC_EIC_DATA_MASK;
348f3cde84ab5b Baolin Wang 2018-03-05 277
348f3cde84ab5b Baolin Wang 2018-03-05 278 for_each_set_bit(n, &status, chip->ngpio) {
348f3cde84ab5b Baolin Wang 2018-03-05 279 /* Clear the interrupt */
348f3cde84ab5b Baolin Wang 2018-03-05 280 sprd_pmic_eic_update(chip, n, SPRD_PMIC_EIC_IC, 1);
348f3cde84ab5b Baolin Wang 2018-03-05 281
491d5e8b66b740 Marc Zyngier 2021-07-25 282 handle_nested_domain_irq(chip->irq.domain, n);
92da8b9deb8795 Baolin Wang 2018-03-30 283
92da8b9deb8795 Baolin Wang 2018-03-30 284 /*
92da8b9deb8795 Baolin Wang 2018-03-30 285 * The PMIC EIC can only support level trigger, so we can
92da8b9deb8795 Baolin Wang 2018-03-30 286 * toggle the level trigger to emulate the edge trigger.
92da8b9deb8795 Baolin Wang 2018-03-30 287 */
92da8b9deb8795 Baolin Wang 2018-03-30 @288 sprd_pmic_eic_toggle_trigger(chip, girq, n);
348f3cde84ab5b Baolin Wang 2018-03-05 289 }
348f3cde84ab5b Baolin Wang 2018-03-05 290
348f3cde84ab5b Baolin Wang 2018-03-05 291 return IRQ_HANDLED;
348f3cde84ab5b Baolin Wang 2018-03-05 292 }
348f3cde84ab5b Baolin Wang 2018-03-05 293
:::::: The code at line 288 was first introduced by commit
:::::: 92da8b9deb8795c960e56412e724c3c3c431e06d gpio: pmic_eic: Add edge trigger emulation for PMIC EIC
:::::: TO: Baolin Wang <baolin.wang at linaro.org>
:::::: CC: Linus Walleij <linus.walleij at linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 36663 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210728/531fd865/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list