lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202141114.QJqYTOhN-lkp@intel.com>
Date:   Mon, 14 Feb 2022 11:07:55 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dmitry Osipenko <digetx@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Thierry Reding <treding@...dia.com>,
        Ulf Hansson <ulf.hansson@...aro.org>
Subject: drivers/gpu/drm/tegra/vic.c:326:12: error: 'vic_runtime_suspend'
 defined but not used

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@...el.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@...dia.com>
:::::: CC: Thierry Reding <treding@...dia.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ