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: <202006180736.lljMam5R%lkp@intel.com>
Date:   Thu, 18 Jun 2020 07:49:39 +0800
From:   kernel test robot <lkp@...el.com>
To:     Bhawanpreet Lakha <Bhawanpreet.Lakha@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Alex Deucher <alexander.deucher@....com>,
        Rodrigo Siqueira <Rodrigo.Siqueira@....com>
Subject: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:547:28:
 warning: variable 'status' set but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1b5044021070efa3259f3e9548dc35d1eb6aa844
commit: fe8db3bcf2e5f9d9056f923b12c7158d6541e435 drm/amd/display: query hdcp capability during link detect
date:   10 weeks ago
config: arc-randconfig-r036-20200617 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.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 checkout fe8db3bcf2e5f9d9056f923b12c7158d6541e435
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

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 >>, old ones prefixed by <<):

drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c: In function 'query_hdcp_capability':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:547:28: warning: variable 'status' set but not used [-Wunused-but-set-variable]
547 |   enum hdcp_message_status status = HDCP_MESSAGE_UNSUPPORTED;
|                            ^~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:85,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:42:
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/dc_link_ddc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:36:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
|                      ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
|                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | 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:37,
from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:28:
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/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
|                                ^~~~~~~~~~~~~

vim +/status +547 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c

   517	
   518	#if defined(CONFIG_DRM_AMD_DC_HDCP)
   519	static void query_hdcp_capability(enum signal_type signal, struct dc_link *link)
   520	{
   521		struct hdcp_protection_message msg22;
   522		struct hdcp_protection_message msg14;
   523	
   524		memset(&msg22, 0, sizeof(struct hdcp_protection_message));
   525		memset(&msg14, 0, sizeof(struct hdcp_protection_message));
   526		memset(link->hdcp_caps.rx_caps.raw, 0,
   527			sizeof(link->hdcp_caps.rx_caps.raw));
   528	
   529		if ((link->connector_signal == SIGNAL_TYPE_DISPLAY_PORT &&
   530				link->ddc->transaction_type ==
   531				DDC_TRANSACTION_TYPE_I2C_OVER_AUX) ||
   532				link->connector_signal == SIGNAL_TYPE_EDP) {
   533			msg22.data = link->hdcp_caps.rx_caps.raw;
   534			msg22.length = sizeof(link->hdcp_caps.rx_caps.raw);
   535			msg22.msg_id = HDCP_MESSAGE_ID_RX_CAPS;
   536		} else {
   537			msg22.data = &link->hdcp_caps.rx_caps.fields.version;
   538			msg22.length = sizeof(link->hdcp_caps.rx_caps.fields.version);
   539			msg22.msg_id = HDCP_MESSAGE_ID_HDCP2VERSION;
   540		}
   541		msg22.version = HDCP_VERSION_22;
   542		msg22.link = HDCP_LINK_PRIMARY;
   543		msg22.max_retries = 5;
   544		dc_process_hdcp_msg(signal, link, &msg22);
   545	
   546		if (signal == SIGNAL_TYPE_DISPLAY_PORT || signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
 > 547			enum hdcp_message_status status = HDCP_MESSAGE_UNSUPPORTED;
   548	
   549			msg14.data = &link->hdcp_caps.bcaps.raw;
   550			msg14.length = sizeof(link->hdcp_caps.bcaps.raw);
   551			msg14.msg_id = HDCP_MESSAGE_ID_READ_BCAPS;
   552			msg14.version = HDCP_VERSION_14;
   553			msg14.link = HDCP_LINK_PRIMARY;
   554			msg14.max_retries = 5;
   555	
   556			status = dc_process_hdcp_msg(signal, link, &msg14);
   557		}
   558	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (25602 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ