[gpio:devel-gpio-driver-isolation 10/14] arch/arm/plat-orion/gpio.c:316:3: error: implicit declaration of function 'gpio_set_value'; did you mean 'gpiod_set_value'?

[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:   e1db9bf671ed01b4f9fc33bbaa57d0c493c0389f
commit: 63aeaf4945d628653770b05655b0aed90ec1ae51 [10/14] 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 63aeaf4945d628653770b05655b0aed90ec1ae51
        # 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:316:3: error: implicit declaration of function 'gpio_set_value'; did you mean 'gpiod_set_value'? [-Werror=implicit-function-declaration]
      gpio_set_value(gpio, state);
      ^~~~~~~~~~~~~~
      gpiod_set_value
   cc1: some warnings being treated as errors

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

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

:::::: The code at line 316 was first introduced by commit
:::::: ff3e660b5a881b401b2b6735aa5334f433237dcb orion/kirkwood: create a generic function for gpio led blinking

:::::: TO: Arnaud Patard (Rtp) <arnaud.patard@xxxxxxxxxxx>
:::::: CC: Jason Cooper <jason@xxxxxxxxxxxxxx>

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