All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [jonhunter:tegra/for-next 10/13] drivers/gpio/gpio-tegra.c:591:2: error: 'ret' undeclared; did you mean 'net'?
Date: Sat, 17 Apr 2021 19:09:19 +0800	[thread overview]
Message-ID: <202104171915.wRtcgfJ1-lkp@intel.com> (raw)

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

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 <lkp@intel.com>

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 <jonathanh@nvidia.com>
:::::: CC: Jon Hunter <jonathanh@nvidia.com>

---
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: 31691 bytes --]

                 reply	other threads:[~2021-04-17 11:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202104171915.wRtcgfJ1-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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.