[linux-stable-rc:linux-5.10.y 3130/5595] drivers/mfd/atmel-flexcom.c:108:32: warning: 'atmel_flexcom_pm_ops' defined but not used

From: kernel test robot
Date: Mon May 09 2022 - 22:28:39 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head: 3dca4fac0d16d15d15f9fe909372b7503ed5ac73
commit: ad52b9890b83ffa7602a23949c2cb0c0d94681e9 [3130/5595] mfd: atmel-flexcom: Use .resume_noirq
config: i386-randconfig-m021-20220509 (https://download.01.org/0day-ci/archive/20220510/202205101006.WQSxaIjZ-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=ad52b9890b83ffa7602a23949c2cb0c0d94681e9
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.10.y
git checkout ad52b9890b83ffa7602a23949c2cb0c0d94681e9
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/mfd/

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

All warnings (new ones prefixed by >>):

>> drivers/mfd/atmel-flexcom.c:108:32: warning: 'atmel_flexcom_pm_ops' defined but not used [-Wunused-const-variable=]
108 | static const struct dev_pm_ops atmel_flexcom_pm_ops = {
| ^~~~~~~~~~~~~~~~~~~~


vim +/atmel_flexcom_pm_ops +108 drivers/mfd/atmel-flexcom.c

107
> 108 static const struct dev_pm_ops atmel_flexcom_pm_ops = {
109 .resume_noirq = atmel_flexcom_resume_noirq,
110 };
111

--
0-DAY CI Kernel Test Service
https://01.org/lkp