lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210172337.urLYhDie-lkp@intel.com>
Date:   Mon, 17 Oct 2022 23:30:10 +0800
From:   kernel test robot <lkp@...el.com>
To:     Alex Deucher <alexander.deucher@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Luben Tuikov <luben.tuikov@....com>
Subject: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c:322:34:
 warning: variable 'optc' set but not used

Hi Alex,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9abf2313adc1ca1b6180c508c25f22f9395cc780
commit: 20f2ffe504728612d7b0c34e4f8280e34251e704 drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3)
date:   1 year, 11 months ago
config: i386-buildonly-randconfig-r005-20221017
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=20f2ffe504728612d7b0c34e4f8280e34251e704
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 20f2ffe504728612d7b0c34e4f8280e34251e704
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/ kernel/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c: In function 'dcn30_enable_writeback':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c:322:34: warning: variable 'optc' set but not used [-Wunused-but-set-variable]
     322 |         struct timing_generator *optc;
         |                                  ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c: In function 'dcn30_update_info_frame':
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c:654:14: warning: variable 'is_dp' set but not used [-Wunused-but-set-variable]
     654 |         bool is_dp;
         |              ^~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c:29:
   At top level:
   drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: 'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
      50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
         |                                          ^~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c:29:
   drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:126:22: warning: 'DP_DVI_CONVERTER_ID_5' defined but not used [-Wunused-const-variable=]
     126 | static const uint8_t DP_DVI_CONVERTER_ID_5[] = "3393N2";
         |                      ^~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:125:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
     125 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
         |                      ^~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:123:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
     123 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
     121 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c:27:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
      76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
         |                                ^~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
      75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
         |                                ^~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
      74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
         |                                ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
      73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
         |                                ^~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
      72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
         |                                ^~~~~~~~~~~
--
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_afmt.c: In function 'afmt3_se_audio_setup':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_afmt.c:122:18: warning: variable 'speakers' set but not used [-Wunused-but-set-variable]
     122 |         uint32_t speakers = 0;
         |                  ^~~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35,
                    from drivers/gpu/drm/amd/amdgpu/../display/include/bios_parser_types.h:30,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_bios_types.h:39,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_afmt.c:27:
   At top level:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
      76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
         |                                ^~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
      75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
         |                                ^~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
      74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
         |                                ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
      73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
         |                                ^~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
      72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
         |                                ^~~~~~~~~~~
--
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hubp.c: In function 'hubp3_set_vm_system_aperture_settings':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hubp.c:50:30: warning: variable 'mc_vm_apt_default' set but not used [-Wunused-but-set-variable]
      50 |         PHYSICAL_ADDRESS_LOC mc_vm_apt_default;
         |                              ^~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/mem_input.h:28,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/hubp.h:29,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/../dcn10/dcn10_hubp.h:28,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hubp.h:29,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hubp.h:29,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hubp.c:26:
   At top level:
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
      76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
         |                                ^~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
      75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
         |                                ^~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
      74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
         |                                ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
      73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
         |                                ^~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
      72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
         |                                ^~~~~~~~~~~


vim +/optc +322 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c

d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  314  
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  315  void dcn30_enable_writeback(
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  316  		struct dc *dc,
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  317  		struct dc_writeback_info *wb_info,
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  318  		struct dc_state *context)
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  319  {
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  320  	struct dwbc *dwb;
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  321  	struct mcif_wb *mcif_wb;
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21 @322  	struct timing_generator *optc;
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  323  
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  324  	dwb = dc->res_pool->dwbc[wb_info->dwb_pipe_inst];
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  325  	mcif_wb = dc->res_pool->mcif_wb[wb_info->dwb_pipe_inst];
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  326  
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  327  	/* set the OPTC source mux */
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  328  	optc = dc->res_pool->timing_generators[dwb->otg_inst];
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  329  	DC_LOG_DWB("%s dwb_pipe_inst = %d, mpcc_inst = %d",\
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  330  		__func__, wb_info->dwb_pipe_inst,\
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  331  		wb_info->mpcc_inst);
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  332  	if (IS_DIAG_DC(dc->ctx->dce_environment)) {
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  333  		/*till diags switch to warmup interface*/
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  334  		dcn30_mmhubbub_warmup(dc, 1, wb_info);
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  335  	}
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  336  	/* Update writeback pipe */
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  337  	dcn30_set_writeback(dc, wb_info, context);
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  338  
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  339  	/* Enable MCIF_WB */
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  340  	mcif_wb->funcs->enable_mcif(mcif_wb);
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  341  	/* Enable DWB */
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  342  	dwb->funcs->enable(dwb, &wb_info->dwb_params);
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  343  }
d99f13878d6f9c2 Bhawanpreet Lakha 2020-05-21  344  

:::::: The code at line 322 was first introduced by commit
:::::: d99f13878d6f9c286b13860d8bf0b4db9ffb189a drm/amd/display: Add DCN3 HWSEQ

:::::: TO: Bhawanpreet Lakha <Bhawanpreet.Lakha@....com>
:::::: CC: Alex Deucher <alexander.deucher@....com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (132740 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ