All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Tue, 27 May 2025 09:22:16 +0800	[thread overview]
Message-ID: <202505270921.1m0fcuEe-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-05-27  1:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202505270921.1m0fcuEe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.