All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Marc Zyngier <maz@kernel.org>
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org
Subject: [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'?
Date: Wed, 28 Jul 2021 03:42:00 +0800	[thread overview]
Message-ID: <202107280354.dimxt712-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4411 bytes --]

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@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@linaro.org>
:::::: CC: Linus Walleij <linus.walleij@linaro.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36663 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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'?
Date: Wed, 28 Jul 2021 03:42:00 +0800	[thread overview]
Message-ID: <202107280354.dimxt712-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4486 bytes --]

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@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@linaro.org>
:::::: CC: Linus Walleij <linus.walleij@linaro.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36663 bytes --]

             reply	other threads:[~2021-07-27 19:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27 19:42 kernel test robot [this message]
2021-07-27 19:42 ` [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202107280354.dimxt712-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=maz@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.