[agd5f:drm-next 49/92] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:4457:4: error: implicit declaration of function 'DC_LOG_DP2'

From: kernel test robot
Date: Fri Nov 19 2021 - 16:27:31 EST


tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: eaae0714f4a82df81a60c6aae74c568e8974a716
commit: 9c0dc981c97dc7a439469dff76bacf6415514496 [49/92] drm/amd/display: Reduce dmesg error to a debug print
config: riscv-randconfig-r004-20211118 (attached as .config)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout 9c0dc981c97dc7a439469dff76bacf6415514496
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:37:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2892:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
uint64_t temp;
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:4457:4: error: implicit declaration of function 'DC_LOG_DP2' [-Werror,-Wimplicit-function-declaration]
DC_LOG_DP2("%s: Read LTTPR caps data failed.\n", __func__);
^
1 warning and 1 error generated.


vim +/DC_LOG_DP2 +4457 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c

4446
4447 if (link->lttpr_mode == LTTPR_MODE_NON_TRANSPARENT || link->lttpr_mode == LTTPR_MODE_TRANSPARENT) {
4448 /* By reading LTTPR capability, RX assumes that we will enable
4449 * LTTPR extended aux timeout if LTTPR is present.
4450 */
4451 status = core_link_read_dpcd(
4452 link,
4453 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV,
4454 lttpr_dpcd_data,
4455 sizeof(lttpr_dpcd_data));
4456 if (status != DC_OK) {
> 4457 DC_LOG_DP2("%s: Read LTTPR caps data failed.\n", __func__);
4458 return false;
4459 }
4460
4461 link->dpcd_caps.lttpr_caps.revision.raw =
4462 lttpr_dpcd_data[DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV -
4463 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4464
4465 link->dpcd_caps.lttpr_caps.max_link_rate =
4466 lttpr_dpcd_data[DP_MAX_LINK_RATE_PHY_REPEATER -
4467 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4468
4469 link->dpcd_caps.lttpr_caps.phy_repeater_cnt =
4470 lttpr_dpcd_data[DP_PHY_REPEATER_CNT -
4471 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4472
4473 link->dpcd_caps.lttpr_caps.max_lane_count =
4474 lttpr_dpcd_data[DP_MAX_LANE_COUNT_PHY_REPEATER -
4475 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4476
4477 link->dpcd_caps.lttpr_caps.mode =
4478 lttpr_dpcd_data[DP_PHY_REPEATER_MODE -
4479 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4480
4481 link->dpcd_caps.lttpr_caps.max_ext_timeout =
4482 lttpr_dpcd_data[DP_PHY_REPEATER_EXTENDED_WAIT_TIMEOUT -
4483 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4484

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

Attachment: .config.gz
Description: application/gzip