* [intel-lts:5.15/preempt-rt 13220/21928] drivers/gpu/drm/msm/adreno/adreno_device.c:664:12: warning: unused function 'adreno_system_suspend'
@ 2023-01-19 12:56 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-19 12:56 UTC (permalink / raw)
Cc: oe-kbuild-all, Li, NanX
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-19 12:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 12:56 [intel-lts:5.15/preempt-rt 13220/21928] drivers/gpu/drm/msm/adreno/adreno_device.c:664:12: warning: unused function 'adreno_system_suspend' kernel test robot
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.