[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203251309.VJH4ngVX-lkp@intel.com>
Date: Fri, 25 Mar 2022 13:50:52 +0800
From: kernel test robot <lkp@...el.com>
To: Alex Deucher <alexander.deucher@....com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Evan Quan <evan.quan@....com>
Subject: drivers/gpu/drm/amd/amdgpu/../pm/swsmu/amdgpu_smu.c:1355:6: warning:
variable 'num_of_active_display' set but not used
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 85c7000fda0029ec16569b1eec8fd3a8d026be73
commit: 75145aab7a0d865b361de687b201e8c4b76425eb drm/amdgpu/swsmu: clean up a bunch of stale interfaces
date: 1 year, 5 months ago
config: arm64-randconfig-r013-20220324 (https://download.01.org/0day-ci/archive/20220325/202203251309.VJH4ngVX-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0f6d9501cf49ce02937099350d08f20c4af86f3d)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=75145aab7a0d865b361de687b201e8c4b76425eb
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 75145aab7a0d865b361de687b201e8c4b76425eb
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/amdgpu_smu.c:1355:6: warning: variable 'num_of_active_display' set but not used [-Wunused-but-set-variable]
int num_of_active_display = 0;
^
1 warning generated.
vim +/num_of_active_display +1355 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/amdgpu_smu.c
137d63abbf6a085 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2018-11-29 1350
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1351 int smu_display_configuration_change(struct smu_context *smu,
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1352 const struct amd_pp_display_configuration *display_config)
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1353 {
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1354 int index = 0;
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 @1355 int num_of_active_display = 0;
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1356
2b7ad277e96577e drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Evan Quan 2020-05-25 1357 if (!smu->pm_enabled || !smu->adev->pm.dpm_enabled)
2b7ad277e96577e drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Evan Quan 2020-05-25 1358 return -EOPNOTSUPP;
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1359
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1360 if (!display_config)
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1361 return -EINVAL;
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1362
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1363 mutex_lock(&smu->mutex);
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1364
ce63d8f8b55d28c drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Evan Quan 2020-06-08 1365 smu_set_min_dcef_deep_sleep(smu,
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1366 display_config->min_dcef_deep_sleep_set_clk / 100);
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1367
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1368 for (index = 0; index < display_config->num_path_including_non_display; index++) {
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1369 if (display_config->displays[index].controller_id != 0)
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1370 num_of_active_display++;
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1371 }
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1372
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1373 mutex_unlock(&smu->mutex);
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1374
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1375 return 0;
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1376 }
94ed6d0cfdb867b drivers/gpu/drm/amd/powerplay/amdgpu_smu.c Huang Rui 2019-01-11 1377
:::::: The code at line 1355 was first introduced by commit
:::::: 94ed6d0cfdb867be9bf05f03d682980bce5d0036 drm/amd/powerplay: add smu display configuration change function
:::::: TO: Huang Rui <ray.huang@....com>
:::::: CC: Alex Deucher <alexander.deucher@....com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists