drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c:351:13: warning: variable 'bw_needed' set but not used

kernel test robot
2023-05-08T14:37:42Z

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ac9a78681b921877518763ba0e89202254349d1b
commit: a8b537605e22bfe277e666727fa0e9e01f2c729b drm/amd/display: Add function pointer for validate bw usb4
date: 7 weeks ago
config: s390-randconfig-r033-20230507 (https://download.01.org/0day-ci/archive/20230508/202305082222.xwzCCjfA-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.1.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/torvalds/linux.git/commit/?id=a8b537605e22bfe277e666727fa0e9e01f2c729b
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a8b537605e22bfe277e666727fa0e9e01f2c729b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305082222.xwzCCjfA-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

s390-linux-ld: arch/s390/purgatory/purgatory: in function `sha256_update':
>> (.text+0x248c): undefined reference to `ftrace_likely_update'
s390-linux-ld: (.text+0x24a4): undefined reference to `ftrace_likely_update'
s390-linux-ld: (.text+0x24bc): undefined reference to `ftrace_likely_update'
s390-linux-ld: (.text+0x29b4): undefined reference to `ftrace_likely_update'
s390-linux-ld: (.text+0x29cc): undefined reference to `ftrace_likely_update'
s390-linux-ld: arch/s390/purgatory/purgatory:(.text+0x29e4): more undefined references to `ftrace_likely_update' follow
--
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c: In function 'link_validate_dpia_bandwidth':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c:352:25: warning: variable 'link' set but not used [-Wunused-but-set-variable]
352 | struct dc_link *link[MAX_DPIA_NUM];
| ^~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c:351:13: warning: variable 'bw_needed' set but not used [-Wunused-but-set-variable]
351 | int bw_needed[MAX_DPIA_NUM];
| ^~~~~~~~~

vim +/bw_needed +351 drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c

347
348 bool link_validate_dpia_bandwidth(const struct dc_stream_state *stream, const unsigned int num_streams)
349 {
350 bool ret = true;
> 351 int bw_needed[MAX_DPIA_NUM];
> 352 struct dc_link *link[MAX_DPIA_NUM];

--
0-DAY CI Kernel Test Service