From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, "Li, NanX" <nanx.li@intel.com>
Subject: [intel-lts:5.15/preempt-rt 13220/21928] drivers/gpu/drm/msm/adreno/adreno_device.c:664:12: warning: unused function 'adreno_system_suspend'
Date: Thu, 19 Jan 2023 20:56:36 +0800 [thread overview]
Message-ID: <202301192057.OadChqZv-lkp@intel.com> (raw)
tree: https://github.com/intel/linux-intel-lts.git 5.15/preempt-rt
head: 616223323be527ff85db4026f7fcf4a296ad5b16
commit: f74aa21a1d6b433676ee02cf983a294605111b40 [13220/21928] drm/msm/gpu: Park scheduler threads for system suspend
config: arm-randconfig-r046-20230118 (https://download.01.org/0day-ci/archive/20230119/202301192057.OadChqZv-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/intel/linux-intel-lts/commit/f74aa21a1d6b433676ee02cf983a294605111b40
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.15/preempt-rt
git checkout f74aa21a1d6b433676ee02cf983a294605111b40
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/msm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/msm/adreno/adreno_device.c:664:12: warning: unused function 'adreno_system_suspend' [-Wunused-function]
static int adreno_system_suspend(struct device *dev)
^
>> drivers/gpu/drm/msm/adreno/adreno_device.c:688:12: warning: unused function 'adreno_system_resume' [-Wunused-function]
static int adreno_system_resume(struct device *dev)
^
2 warnings generated.
vim +/adreno_system_suspend +664 drivers/gpu/drm/msm/adreno/adreno_device.c
663
> 664 static int adreno_system_suspend(struct device *dev)
665 {
666 struct msm_gpu *gpu = dev_to_gpu(dev);
667 int remaining, ret;
668
669 suspend_scheduler(gpu);
670
671 remaining = wait_event_timeout(gpu->retire_event,
672 active_submits(gpu) == 0,
673 msecs_to_jiffies(1000));
674 if (remaining == 0) {
675 dev_err(dev, "Timeout waiting for GPU to suspend\n");
676 ret = -EBUSY;
677 goto out;
678 }
679
680 ret = pm_runtime_force_suspend(dev);
681 out:
682 if (ret)
683 resume_scheduler(gpu);
684
685 return ret;
686 }
687
> 688 static int adreno_system_resume(struct device *dev)
689 {
690 resume_scheduler(dev_to_gpu(dev));
691 return pm_runtime_force_resume(dev);
692 }
693
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-01-19 12:56 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=202301192057.OadChqZv-lkp@intel.com \
--to=lkp@intel.com \
--cc=nanx.li@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.