linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/gpu/drm/tegra/vic.c:326:12: error: 'vic_runtime_suspend' defined but not used
@ 2022-02-14  3:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-14  3:07 UTC (permalink / raw)
  To: Dmitry Osipenko; +Cc: kbuild-all, linux-kernel, Thierry Reding, Ulf Hansson

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   754e0b0e35608ed5206d6a67a791563c631cec07
commit: 1e15f5b911d6a1b4a5677e88527610946bd314dd drm/tegra: vic: Stop channel on suspend
date:   9 weeks ago
config: arm-randconfig-r016-20220213 (https://download.01.org/0day-ci/archive/20220214/202202141114.QJqYTOhN-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1e15f5b911d6a1b4a5677e88527610946bd314dd
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 1e15f5b911d6a1b4a5677e88527610946bd314dd
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/tegra/

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/tegra/vic.c:326:12: error: 'vic_runtime_suspend' defined but not used [-Werror=unused-function]
     326 | static int vic_runtime_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/tegra/vic.c:292:12: error: 'vic_runtime_resume' defined but not used [-Werror=unused-function]
     292 | static int vic_runtime_resume(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/vic_runtime_suspend +326 drivers/gpu/drm/tegra/vic.c

77a0b09dd993c8 Thierry Reding  2019-02-01  290  
9916612311a777 Mikko Perttunen 2021-06-10  291  
9916612311a777 Mikko Perttunen 2021-06-10 @292  static int vic_runtime_resume(struct device *dev)
0ae797a8ba05a2 Arto Merilainen 2016-12-14  293  {
9916612311a777 Mikko Perttunen 2021-06-10  294  	struct vic *vic = dev_get_drvdata(dev);
0ae797a8ba05a2 Arto Merilainen 2016-12-14  295  	int err;
0ae797a8ba05a2 Arto Merilainen 2016-12-14  296  
9916612311a777 Mikko Perttunen 2021-06-10  297  	err = clk_prepare_enable(vic->clk);
0ae797a8ba05a2 Arto Merilainen 2016-12-14  298  	if (err < 0)
0ae797a8ba05a2 Arto Merilainen 2016-12-14  299  		return err;
0ae797a8ba05a2 Arto Merilainen 2016-12-14  300  
9916612311a777 Mikko Perttunen 2021-06-10  301  	usleep_range(10, 20);
9916612311a777 Mikko Perttunen 2021-06-10  302  
9916612311a777 Mikko Perttunen 2021-06-10  303  	err = reset_control_deassert(vic->rst);
9916612311a777 Mikko Perttunen 2021-06-10  304  	if (err < 0)
9916612311a777 Mikko Perttunen 2021-06-10  305  		goto disable;
9916612311a777 Mikko Perttunen 2021-06-10  306  
9916612311a777 Mikko Perttunen 2021-06-10  307  	usleep_range(10, 20);
9916612311a777 Mikko Perttunen 2021-06-10  308  
77a0b09dd993c8 Thierry Reding  2019-02-01  309  	err = vic_load_firmware(vic);
77a0b09dd993c8 Thierry Reding  2019-02-01  310  	if (err < 0)
9916612311a777 Mikko Perttunen 2021-06-10  311  		goto assert;
77a0b09dd993c8 Thierry Reding  2019-02-01  312  
0ae797a8ba05a2 Arto Merilainen 2016-12-14  313  	err = vic_boot(vic);
77a0b09dd993c8 Thierry Reding  2019-02-01  314  	if (err < 0)
9916612311a777 Mikko Perttunen 2021-06-10  315  		goto assert;
0ae797a8ba05a2 Arto Merilainen 2016-12-14  316  
9916612311a777 Mikko Perttunen 2021-06-10  317  	return 0;
9916612311a777 Mikko Perttunen 2021-06-10  318  
9916612311a777 Mikko Perttunen 2021-06-10  319  assert:
9916612311a777 Mikko Perttunen 2021-06-10  320  	reset_control_assert(vic->rst);
9916612311a777 Mikko Perttunen 2021-06-10  321  disable:
9916612311a777 Mikko Perttunen 2021-06-10  322  	clk_disable_unprepare(vic->clk);
9916612311a777 Mikko Perttunen 2021-06-10  323  	return err;
0ae797a8ba05a2 Arto Merilainen 2016-12-14  324  }
0ae797a8ba05a2 Arto Merilainen 2016-12-14  325  
9916612311a777 Mikko Perttunen 2021-06-10 @326  static int vic_runtime_suspend(struct device *dev)
9916612311a777 Mikko Perttunen 2021-06-10  327  {
9916612311a777 Mikko Perttunen 2021-06-10  328  	struct vic *vic = dev_get_drvdata(dev);
9916612311a777 Mikko Perttunen 2021-06-10  329  	int err;
9916612311a777 Mikko Perttunen 2021-06-10  330  
1e15f5b911d6a1 Dmitry Osipenko 2021-12-01  331  	host1x_channel_stop(vic->channel);
1e15f5b911d6a1 Dmitry Osipenko 2021-12-01  332  
9916612311a777 Mikko Perttunen 2021-06-10  333  	err = reset_control_assert(vic->rst);
9916612311a777 Mikko Perttunen 2021-06-10  334  	if (err < 0)
9916612311a777 Mikko Perttunen 2021-06-10  335  		return err;
9916612311a777 Mikko Perttunen 2021-06-10  336  
9916612311a777 Mikko Perttunen 2021-06-10  337  	usleep_range(2000, 4000);
9916612311a777 Mikko Perttunen 2021-06-10  338  
9916612311a777 Mikko Perttunen 2021-06-10  339  	clk_disable_unprepare(vic->clk);
9916612311a777 Mikko Perttunen 2021-06-10  340  
0ae797a8ba05a2 Arto Merilainen 2016-12-14  341  	return 0;
9916612311a777 Mikko Perttunen 2021-06-10  342  }
77a0b09dd993c8 Thierry Reding  2019-02-01  343  

:::::: The code at line 326 was first introduced by commit
:::::: 9916612311a777cdf15a53491243589ea4fcc4e7 drm/tegra: Boot VIC during runtime PM resume

:::::: TO: Mikko Perttunen <mperttunen@nvidia.com>
:::::: CC: Thierry Reding <treding@nvidia.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-14  3:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14  3:07 drivers/gpu/drm/tegra/vic.c:326:12: error: 'vic_runtime_suspend' defined but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).