[tty:tty-next 27/39] drivers/tty/serial/stm32-usart.c:1310:2: error: implicit declaration of function 'pinctrl_pm_select_default_state'; did you mean 'irq_set_default_host'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-next
head:   ba3684f99f1b25d2a30b6956d02d339d7acb9799
commit: c70669ecef4e34af8913108fae4b8a9b1dc63fa1 [27/39] serial: stm32: select pinctrl state in each suspend/resume function
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-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 c70669ecef4e34af8913108fae4b8a9b1dc63fa1
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

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

All errors (new ones prefixed by >>):

   drivers/tty/serial/stm32-usart.c: In function 'stm32_serial_suspend':
   drivers/tty/serial/stm32-usart.c:1301:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]
     pinctrl_pm_select_sleep_state(dev);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/tty/serial/stm32-usart.c: In function 'stm32_serial_resume':
>> drivers/tty/serial/stm32-usart.c:1310:2: error: implicit declaration of function 'pinctrl_pm_select_default_state'; did you mean 'irq_set_default_host'? [-Werror=implicit-function-declaration]
     pinctrl_pm_select_default_state(dev);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     irq_set_default_host
   cc1: some warnings being treated as errors

vim +1310 drivers/tty/serial/stm32-usart.c

  1289	
  1290	static int stm32_serial_suspend(struct device *dev)
  1291	{
  1292		struct uart_port *port = dev_get_drvdata(dev);
  1293	
  1294		uart_suspend_port(&stm32_usart_driver, port);
  1295	
  1296		if (device_may_wakeup(dev))
  1297			stm32_serial_enable_wakeup(port, true);
  1298		else
  1299			stm32_serial_enable_wakeup(port, false);
  1300	
> 1301		pinctrl_pm_select_sleep_state(dev);
  1302	
  1303		return 0;
  1304	}
  1305	
  1306	static int stm32_serial_resume(struct device *dev)
  1307	{
  1308		struct uart_port *port = dev_get_drvdata(dev);
  1309	
> 1310		pinctrl_pm_select_default_state(dev);
  1311	
  1312		if (device_may_wakeup(dev))
  1313			stm32_serial_enable_wakeup(port, false);
  1314	
  1315		return uart_resume_port(&stm32_usart_driver, port);
  1316	}
  1317	#endif /* CONFIG_PM_SLEEP */
  1318	

---
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]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux