[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202306210852.JWLKcawy-lkp@intel.com>
Date: Wed, 21 Jun 2023 08:51:45 +0800
From: kernel test robot <lkp@...el.com>
To: "Jason-JH.Lin" <jason-jh.lin@...iatek.com>,
Chun-Kuang Hu <chunkuang.hu@...nel.org>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
Cc: oe-kbuild-all@...ts.linux.dev,
"Jason-JH . Lin" <jason-jh.lin@...iatek.com>,
Singo Chang <singo.chang@...iatek.com>,
linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
Project_Global_Chrome_Upstream_Group@...iatek.com,
Jason-ch Chen <jason-ch.chen@...iatek.com>,
Nancy Lin <nancy.lin@...iatek.com>,
Johnson Wang <johnson.wang@...iatek.com>,
Shawn Sung <shawn.sung@...iatek.com>,
linux-mediatek@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] drm/mediatek: Fix void-pointer-to-enum-cast warning
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@...el.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
Powered by blists - more mailing lists