oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [agd5f:drm-next 44/55] drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c:351:13: warning: variable 'bw_needed' set but not used
@ 2023-03-22  9:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-22  9:25 UTC (permalink / raw)
  To: Mustapha Ghaddar; +Cc: oe-kbuild-all, Alex Deucher, Kshitij Bhardwaj

tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head:   5ee33d905f89c18d4b33da6e5eefdae6060502df
commit: a8b537605e22bfe277e666727fa0e9e01f2c729b [44/55] drm/amd/display: Add function pointer for validate bw usb4
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20230322/202303221749.kriRAgK6-lkp@intel.com/config)
compiler: arceb-elf-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
        git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
        git fetch --no-tags agd5f drm-next
        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=arc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/drm/

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/202303221749.kriRAgK6-lkp@intel.com/

All warnings (new ones prefixed by >>):

   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
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-22  9:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22  9:25 [agd5f:drm-next 44/55] drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c:351:13: warning: variable 'bw_needed' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).