[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203250504.X4x0hoOe-lkp@intel.com>
Date: Fri, 25 Mar 2022 05:49:59 +0800
From: kernel test robot <lkp@...el.com>
To: Jimmy Kizito <Jimmy.Kizito@....com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org,
Alex Deucher <alexander.deucher@....com>,
Jun Lei <Jun.Lei@....com>
Subject: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_enc_cfg.c:416:6:
warning: variable 'matching_stream_ptrs' set but not used
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ed4643521e6af8ab8ed1e467630a85884d2696cf
commit: b3492ed160768ad60ad6753269099213b6772a70 drm/amd/display: Fix concurrent dynamic encoder assignment
date: 6 months ago
config: arm64-randconfig-r013-20220324 (https://download.01.org/0day-ci/archive/20220325/202203250504.X4x0hoOe-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=b3492ed160768ad60ad6753269099213b6772a70
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout b3492ed160768ad60ad6753269099213b6772a70
# 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
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/../display/dc/core/dc_link_enc_cfg.c:416:6: warning: variable 'matching_stream_ptrs' set but not used [-Wunused-but-set-variable]
int matching_stream_ptrs = 0;
^
1 warning generated.
vim +/matching_stream_ptrs +416 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_enc_cfg.c
404
405 bool link_enc_cfg_validate(struct dc *dc, struct dc_state *state)
406 {
407 bool is_valid = false;
408 bool valid_entries = true;
409 bool valid_stream_ptrs = true;
410 bool valid_uniqueness = true;
411 bool valid_avail = true;
412 bool valid_streams = true;
413 int i, j;
414 uint8_t valid_count = 0;
415 uint8_t dig_stream_count = 0;
> 416 int matching_stream_ptrs = 0;
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists