* [chrome-os:chromeos-6.6 133/133] drivers/gpu/drm/mediatek/mtk_dp_mst.c:981:28: error: assignment to 'int' from 'struct drm_encoder *' makes integer from pointer without a cast
@ 2025-05-27 1:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-27 1:22 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.6
head: 00e2b7e08c550ff321daba7b9956795d281bdd98
commit: d12007dbbfb528e0618c79a77643e64dff14d0cc [133/133] CHROMIUM: drm/mediatek: Refine the MST ACT flow
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20250527/202505270921.1m0fcuEe-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250527/202505270921.1m0fcuEe-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505270921.1m0fcuEe-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/mediatek/mtk_dp_mst.c: In function 'mtk_dp_mst_drv_set_hdcp_setting':
>> drivers/gpu/drm/mediatek/mtk_dp_mst.c:981:28: error: assignment to 'int' from 'struct drm_encoder *' makes integer from pointer without a cast [-Wint-conversion]
981 | encoder_id = mtk_dp->mtk_con[i]->encoder;
| ^
vim +981 drivers/gpu/drm/mediatek/mtk_dp_mst.c
960
961 void mtk_dp_mst_drv_set_hdcp_setting(struct mtk_dp *mtk_dp)
962 {
963 u8 i;
964 int encoder_id;
965 u16 start_slot, end_slot;
966 struct drm_dp_mst_atomic_payload *payload;
967 struct drm_dp_mst_topology_state *mst_state;
968
969 mtk_dp_mst_hal_hdcp_enable(mtk_dp, true);
970
971 mst_state = to_drm_dp_mst_topology_state(mtk_dp->mgr.base.state);
972 if (IS_ERR_OR_NULL(mst_state)) {
973 dev_err(mtk_dp->dev, "[DPTX] fail to get mst topology state!\n");
974 return;
975 }
976
977 for (i = 0; i < ARRAY_SIZE(mtk_dp->mtk_con); i++) {
978 if (!mst_con_with_encoder(mtk_dp->mtk_con[i]))
979 continue;
980
> 981 encoder_id = mtk_dp->mtk_con[i]->encoder;
982 if ((mst_state->payload_mask >> encoder_id) & 0x1) {
983 payload = drm_atomic_get_mst_payload_state(mst_state,
984 mtk_dp->mtk_con[i]->port);
985 if (IS_ERR_OR_NULL(payload)) {
986 dev_err(mtk_dp->dev, "[DPTX] fail to get mst payload state!\n");
987 continue;
988 }
989
990 start_slot = payload->vc_start_slot;
991 end_slot = start_slot + payload->time_slots;
992
993 /* reg_vc_payload_timeslot */
994 if ((start_slot > 64) || (end_slot > 64))
995 dev_err(mtk_dp->dev,
996 "[DPTX] Invalid slot region, start_slot %d, end_slot %d\n",
997 start_slot, end_slot);
998 else
999 mtk_dp_mst_hal_hdcp_set_timeslot(mtk_dp, start_slot, end_slot);
1000 }
1001 }
1002
1003 mtk_dp_mst_hal_hdcp_trigger_act(mtk_dp);
1004 }
1005
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-27 1:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-27 1:22 [chrome-os:chromeos-6.6 133/133] drivers/gpu/drm/mediatek/mtk_dp_mst.c:981:28: error: assignment to 'int' from 'struct drm_encoder *' makes integer from pointer without a cast 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.