drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6349:6: warning: no previous prototype for 'amdgpu_dm_connector_funcs_force'
kernel test robot
build bottree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next head: 6d3435e2e3031a3541f5e23bba4d54eff78eb9fa commit: 0ba4a784a14592abed41873e339eab78ceb6e230 [121/143] drm/amd/display: implement force function in amdgpu_dm_connector_funcs config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230425/[email protected]/config) compiler: sparc64-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
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout 0ba4a784a14592abed41873e339eab78ceb6e230
# 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=sparc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6349:6: warning: no previous prototype for 'amdgpu_dm_connector_funcs_force' [-Wmissing-prototypes]
6349 | void amdgpu_dm_connector_funcs_force(struct drm_connector *connector)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'create_eml_sink':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6405:21: warning: variable 'count' set but not used [-Wunused-but-set-variable]
6405 | int count;
| ^~~~~vim +/amdgpu_dm_connector_funcs_force +6349 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c
6348
> 6349 void amdgpu_dm_connector_funcs_force(struct drm_connector *connector)
6350 {
6351 struct amdgpu_dm_connector *aconnector = to_amdgpu_dm_connector(connector);
6352 struct dc_link *dc_link = aconnector->dc_link;
6353 struct dc_sink *dc_em_sink = aconnector->dc_em_sink;
6354 struct edid *edid;
6355
6356 if (!connector->edid_override)
6357 return;
6358
6359 drm_edid_override_connector_update(&aconnector->base);
6360 edid = aconnector->base.edid_blob_ptr->data;
6361 aconnector->edid = edid;
6362
6363 /* Update emulated (virtual) sink's EDID */
6364 if (dc_em_sink && dc_link) {
6365 memset(&dc_em_sink->edid_caps, 0, sizeof(struct dc_edid_caps));
6366 memmove(dc_em_sink->dc_edid.raw_edid, edid, (edid->extensions + 1) * EDID_LENGTH);
6367 dm_helpers_parse_edid_caps(
6368 dc_link,
6369 &dc_em_sink->dc_edid,
6370 &dc_em_sink->edid_caps);
6371 }
6372 }
6373
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests