[asahilinux:bits/240-isp 55/71] drivers/media/platform/apple/avd/avd-drv.c:692:12: warning: 'avd_runtime_suspend' defined but not used

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
Hi sofus,

FYI, the error/warning still remains.

tree:   https://github.com/AsahiLinux/linux bits/240-isp
head:   adec89957b4232b3d33188245114b9e640f72de6
commit: 9d77b27426e338bbf4f4df0676c1e064e046527e [55/71] media: apple: add avd driver
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260813/[email protected]/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260813/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/media/platform/apple/avd/avd-drv.c:692:12: warning: 'avd_runtime_suspend' defined but not used [-Wunused-function]
     692 | static int avd_runtime_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/apple/avd/avd-drv.c:681:12: warning: 'avd_runtime_resume' defined but not used [-Wunused-function]
     681 | static int avd_runtime_resume(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~


vim +/avd_runtime_suspend +692 drivers/media/platform/apple/avd/avd-drv.c

   680	
 > 681	static int avd_runtime_resume(struct device *dev)
   682	{
   683		int ret;
   684		struct avd_dev *avd = platform_get_drvdata(to_platform_device(dev));
   685	
   686		ret = avd_boot(avd);
   687		if (ret)
   688			dev_err(dev, "failed to boot");
   689		return ret;
   690	}
   691	
 > 692	static int avd_runtime_suspend(struct device *dev)
   693	{
   694		struct avd_dev *avd = platform_get_drvdata(to_platform_device(dev));
   695	
   696		avd_shutdown(avd);
   697		return 0;
   698	}
   699	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.