[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 Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

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@xxxxxxxxxxxxxxx>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux