From: kernel test robot <lkp@intel.com>
To: "Jason-JH.Lin" <jason-jh.lin@mediatek.com>,
Chun-Kuang Hu <chunkuang.hu@kernel.org>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>
Cc: oe-kbuild-all@lists.linux.dev,
"Jason-JH . Lin" <jason-jh.lin@mediatek.com>,
Singo Chang <singo.chang@mediatek.com>,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
Project_Global_Chrome_Upstream_Group@mediatek.com,
Jason-ch Chen <jason-ch.chen@mediatek.com>,
Nancy Lin <nancy.lin@mediatek.com>,
Johnson Wang <johnson.wang@mediatek.com>,
Shawn Sung <shawn.sung@mediatek.com>,
linux-mediatek@lists.infradead.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] drm/mediatek: Fix void-pointer-to-enum-cast warning
Date: Wed, 21 Jun 2023 08:51:45 +0800 [thread overview]
Message-ID: <202306210852.JWLKcawy-lkp@intel.com> (raw)
In-Reply-To: <20230620102804.17585-1-jason-jh.lin@mediatek.com>
Hi Jason-JH.Lin,
kernel test robot noticed the following build errors:
[auto build test ERROR on drm-misc/drm-misc-next]
[also build test ERROR on linus/master v6.4-rc7 next-20230620]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Jason-JH-Lin/drm-mediatek-Fix-void-pointer-to-enum-cast-warning/20230620-182906
base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link: https://lore.kernel.org/r/20230620102804.17585-1-jason-jh.lin%40mediatek.com
patch subject: [PATCH] drm/mediatek: Fix void-pointer-to-enum-cast warning
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20230621/202306210852.JWLKcawy-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230621/202306210852.JWLKcawy-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/202306210852.JWLKcawy-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c: In function 'ovl_adaptor_comp_init':
>> drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c:429:24: error: incompatible types when assigning to type 'enum mtk_ovl_adaptor_comp_type' from type 'const void *'
429 | type = of_id->data;
| ^~~~~
--
drivers/gpu/drm/mediatek/mtk_drm_drv.c: In function 'mtk_drm_probe':
>> drivers/gpu/drm/mediatek/mtk_drm_drv.c:831:29: error: incompatible types when assigning to type 'enum mtk_ddp_comp_type' from type 'const void *'
831 | comp_type = of_id->data;
| ^~~~~
vim +429 drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c
405
406 static int ovl_adaptor_comp_init(struct device *dev, struct component_match **match)
407 {
408 struct mtk_disp_ovl_adaptor *priv = dev_get_drvdata(dev);
409 struct device_node *node, *parent;
410 struct platform_device *comp_pdev;
411
412 parent = dev->parent->parent->of_node->parent;
413
414 for_each_child_of_node(parent, node) {
415 const struct of_device_id *of_id;
416 enum mtk_ovl_adaptor_comp_type type;
417 int id;
418
419 of_id = of_match_node(mtk_ovl_adaptor_comp_dt_ids, node);
420 if (!of_id)
421 continue;
422
423 if (!of_device_is_available(node)) {
424 dev_dbg(dev, "Skipping disabled component %pOF\n",
425 node);
426 continue;
427 }
428
> 429 type = of_id->data;
430 id = ovl_adaptor_comp_get_id(dev, node, type);
431 if (id < 0) {
432 dev_warn(dev, "Skipping unknown component %pOF\n",
433 node);
434 continue;
435 }
436
437 comp_pdev = of_find_device_by_node(node);
438 if (!comp_pdev)
439 return -EPROBE_DEFER;
440
441 priv->ovl_adaptor_comp[id] = &comp_pdev->dev;
442
443 drm_of_component_match_add(dev, match, compare_of, node);
444 dev_dbg(dev, "Adding component match for %pOF\n", node);
445 }
446
447 if (!*match) {
448 dev_err(dev, "No match device for ovl_adaptor\n");
449 return -ENODEV;
450 }
451
452 return 0;
453 }
454
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
parent reply other threads:[~2023-06-21 0:51 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20230620102804.17585-1-jason-jh.lin@mediatek.com>]
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=202306210852.JWLKcawy-lkp@intel.com \
--to=lkp@intel.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunkuang.hu@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jason-ch.chen@mediatek.com \
--cc=jason-jh.lin@mediatek.com \
--cc=johnson.wang@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=nancy.lin@mediatek.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=shawn.sung@mediatek.com \
--cc=singo.chang@mediatek.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).