linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: kbuild-all@01.org, linux-gpio@vger.kernel.org
Subject: [gpio:devel-gpio-driver-isolation 61/66] arch/arm/plat-orion/gpio.c:306:18: error: implicit declaration of function 'desc_to_gpio'; did you mean 'dev_to_psd'?
Date: Sun, 7 Jul 2019 04:41:40 +0800	[thread overview]
Message-ID: <201907070432.c7Xotl5G%lkp@intel.com> (raw)

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

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/linusw/linux-gpio.git devel-gpio-driver-isolation
head:   6c5bf689e0dca2a882193a202a96222dcba184e9
commit: f92518de7f35387d034f1b688354ff0ab4ad448d [61/66] ARM: plat-orion: Include the right header
config: arm-multi_v5_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout f92518de7f35387d034f1b688354ff0ab4ad448d
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/arm/plat-orion/gpio.c: In function 'orion_gpio_led_blink_set':
>> arch/arm/plat-orion/gpio.c:306:18: error: implicit declaration of function 'desc_to_gpio'; did you mean 'dev_to_psd'? [-Werror=implicit-function-declaration]
     unsigned gpio = desc_to_gpio(desc);
                     ^~~~~~~~~~~~
                     dev_to_psd
>> arch/arm/plat-orion/gpio.c:315:3: error: implicit declaration of function 'gpio_set_value'; did you mean 'pin_is_valid'? [-Werror=implicit-function-declaration]
      gpio_set_value(gpio, state);
      ^~~~~~~~~~~~~~
      pin_is_valid
   cc1: some warnings being treated as errors

vim +306 arch/arm/plat-orion/gpio.c

ff3e660b Arnaud Patard     2012-04-18  302  
c673a2b4 Mika Westerberg   2014-10-31  303  int orion_gpio_led_blink_set(struct gpio_desc *desc, int state,
ff3e660b Arnaud Patard     2012-04-18  304  	unsigned long *delay_on, unsigned long *delay_off)
ff3e660b Arnaud Patard     2012-04-18  305  {
c673a2b4 Mika Westerberg   2014-10-31 @306  	unsigned gpio = desc_to_gpio(desc);
ff3e660b Arnaud Patard     2012-04-18  307  
ff3e660b Arnaud Patard     2012-04-18  308  	if (delay_on && delay_off && !*delay_on && !*delay_off)
ff3e660b Arnaud Patard     2012-04-18  309  		*delay_on = *delay_off = ORION_BLINK_HALF_PERIOD;
ff3e660b Arnaud Patard     2012-04-18  310  
ff3e660b Arnaud Patard     2012-04-18  311  	switch (state) {
ff3e660b Arnaud Patard     2012-04-18  312  	case GPIO_LED_NO_BLINK_LOW:
ff3e660b Arnaud Patard     2012-04-18  313  	case GPIO_LED_NO_BLINK_HIGH:
ff3e660b Arnaud Patard     2012-04-18  314  		orion_gpio_set_blink(gpio, 0);
ff3e660b Arnaud Patard     2012-04-18 @315  		gpio_set_value(gpio, state);
ff3e660b Arnaud Patard     2012-04-18  316  		break;
ff3e660b Arnaud Patard     2012-04-18  317  	case GPIO_LED_BLINK:
ff3e660b Arnaud Patard     2012-04-18  318  		orion_gpio_set_blink(gpio, 1);
ff3e660b Arnaud Patard     2012-04-18  319  	}
ff3e660b Arnaud Patard     2012-04-18  320  	return 0;
ff3e660b Arnaud Patard     2012-04-18  321  }
ff3e660b Arnaud Patard     2012-04-18  322  EXPORT_SYMBOL_GPL(orion_gpio_led_blink_set);
ff3e660b Arnaud Patard     2012-04-18  323  
07332318 Lennert Buytenhek 2008-10-20  324  

:::::: The code at line 306 was first introduced by commit
:::::: c673a2b4008103525a3cf21bedf15ffac37bfef0 leds: leds-gpio: Convert gpio_blink_set() to use GPIO descriptors

:::::: TO: Mika Westerberg <mika.westerberg@linux.intel.com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

                 reply	other threads:[~2019-07-06 20:42 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=201907070432.c7Xotl5G%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).