linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mikko Perttunen <mperttunen@nvidia.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Thierry Reding <treding@nvidia.com>
Subject: [linux-next:master 5501/13596] drivers/gpu/drm/tegra/nvdec.c:240:12: error: 'nvdec_runtime_resume' defined but not used
Date: Wed, 10 Nov 2021 23:38:50 +0800	[thread overview]
Message-ID: <202111102342.h2MBZH5u-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2309 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   73e5c18006f5e1f7d35d1e996609eaff6536ae5e
commit: e76599df354df9f0e919d97dfea80590c24d9abb [5501/13596] drm/tegra: Add NVDEC driver
config: arm-buildonly-randconfig-r005-20211031 (attached as .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/next/linux-next.git/commit/?id=e76599df354df9f0e919d97dfea80590c24d9abb
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout e76599df354df9f0e919d97dfea80590c24d9abb
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm 

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

Note: the linux-next/master HEAD 73e5c18006f5e1f7d35d1e996609eaff6536ae5e builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

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


vim +/nvdec_runtime_resume +240 drivers/gpu/drm/tegra/nvdec.c

   238	
   239	
 > 240	static int nvdec_runtime_resume(struct device *dev)
   241	{
   242		struct nvdec *nvdec = dev_get_drvdata(dev);
   243		int err;
   244	
   245		err = clk_prepare_enable(nvdec->clk);
   246		if (err < 0)
   247			return err;
   248	
   249		usleep_range(10, 20);
   250	
   251		err = nvdec_load_firmware(nvdec);
   252		if (err < 0)
   253			goto disable;
   254	
   255		err = nvdec_boot(nvdec);
   256		if (err < 0)
   257			goto disable;
   258	
   259		return 0;
   260	
   261	disable:
   262		clk_disable_unprepare(nvdec->clk);
   263		return err;
   264	}
   265	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34802 bytes --]

                 reply	other threads:[~2021-11-10 15:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202111102342.h2MBZH5u-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=mperttunen@nvidia.com \
    --cc=treding@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox