* [agd5f:drm-next 159/188] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:1019:7: warning: variable 'edp_sink_present' set but not used
@ 2021-03-02 21:47 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-02 21:47 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3354 bytes --]
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: 7f0346042f19d534c6537e8ad0245e0cd4c4d61f
commit: 45a1261b393bd3dc24d1ae8a55249c0897df0c88 [159/188] drm/amd/display: Refactored DC interfaces to support multiple eDP
config: x86_64-randconfig-r015-20210303 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout 45a1261b393bd3dc24d1ae8a55249c0897df0c88
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c: In function 'detect_edp_presence':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:1019:7: warning: variable 'edp_sink_present' set but not used [-Wunused-but-set-variable]
1019 | bool edp_sink_present = true;
| ^~~~~~~~~~~~~~~~
vim +/edp_sink_present +1019 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c
4562236b3bc0a2 Harry Wentland 2017-09-12 1012
6fce5bcee58280 Eric Yang 2021-01-22 1013 static void detect_edp_presence(struct dc *dc)
6fce5bcee58280 Eric Yang 2021-01-22 1014 {
45a1261b393bd3 Jake Wang 2021-02-05 1015 struct dc_link *edp_links[MAX_NUM_EDP];
45a1261b393bd3 Jake Wang 2021-02-05 1016 struct dc_link *edp_link = NULL;
45a1261b393bd3 Jake Wang 2021-02-05 1017 int i;
45a1261b393bd3 Jake Wang 2021-02-05 1018 int edp_num;
6fce5bcee58280 Eric Yang 2021-01-22 @1019 bool edp_sink_present = true;
6fce5bcee58280 Eric Yang 2021-01-22 1020
45a1261b393bd3 Jake Wang 2021-02-05 1021 get_edp_links(dc, edp_links, &edp_num);
45a1261b393bd3 Jake Wang 2021-02-05 1022 if (!edp_num)
6fce5bcee58280 Eric Yang 2021-01-22 1023 return;
6fce5bcee58280 Eric Yang 2021-01-22 1024
6fce5bcee58280 Eric Yang 2021-01-22 1025 if (dc->config.edp_not_connected) {
6fce5bcee58280 Eric Yang 2021-01-22 1026 edp_sink_present = false;
6fce5bcee58280 Eric Yang 2021-01-22 1027 } else {
6fce5bcee58280 Eric Yang 2021-01-22 1028 enum dc_connection_type type;
45a1261b393bd3 Jake Wang 2021-02-05 1029 for (i = 0; i < edp_num; i++) {
45a1261b393bd3 Jake Wang 2021-02-05 1030 edp_link = edp_links[i];
6fce5bcee58280 Eric Yang 2021-01-22 1031 dc_link_detect_sink(edp_link, &type);
45a1261b393bd3 Jake Wang 2021-02-05 1032 edp_link->edp_sink_present = (type != dc_connection_none);
45a1261b393bd3 Jake Wang 2021-02-05 1033 }
6fce5bcee58280 Eric Yang 2021-01-22 1034 }
6fce5bcee58280 Eric Yang 2021-01-22 1035 }
6fce5bcee58280 Eric Yang 2021-01-22 1036
:::::: The code at line 1019 was first introduced by commit
:::::: 6fce5bcee582809b63b14a853ab2efed7a4f5c2e drm/amd/display: move edp sink present detection to hw init
:::::: TO: Eric Yang <Eric.Yang2@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33278 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-02 21:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02 21:47 [agd5f:drm-next 159/188] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:1019:7: warning: variable 'edp_sink_present' set but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.