* [chrome-os:chromeos-5.10 8/147] drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c:106:14: warning: cast to smaller integer type 'enum mtk_vdec_hw_id' from 'const void *'
@ 2021-11-19 16:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-19 16:06 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3009 bytes --]
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: ed87340a6d1e040dd01d1d1ae1a12f1a7e504559
commit: 792f7cde625bbc945e4b69190cbf4b0551f79878 [8/147] CHROMIUM: media: mtk-vcodec: Use component framework to manage each hardware information
config: x86_64-buildonly-randconfig-r005-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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 792f7cde625bbc945e4b69190cbf4b0551f79878
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c:106:14: warning: cast to smaller integer type 'enum mtk_vdec_hw_id' from 'const void *' [-Wvoid-pointer-to-enum-cast]
comp_idx = (enum mtk_vdec_hw_id)of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +106 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c
76
77 static struct component_match *mtk_vcodec_match_add(
78 struct mtk_vcodec_dev *vdec_dev)
79 {
80 struct platform_device *pdev = vdec_dev->plat_dev;
81 struct component_match *match = NULL;
82 int i;
83
84 for (i = 0; i < ARRAY_SIZE(mtk_vdec_drv_ids); i++) {
85 struct device_node *comp_node;
86 enum mtk_vdec_hw_id comp_idx;
87 const struct of_device_id *of_id;
88
89 comp_node = of_find_compatible_node(NULL, NULL,
90 mtk_vdec_drv_ids[i].compatible);
91 if (!comp_node)
92 continue;
93
94 if (!of_device_is_available(comp_node)) {
95 of_node_put(comp_node);
96 dev_err(&pdev->dev, "Fail to get MMSYS node\n");
97 continue;
98 }
99
100 of_id = of_match_node(mtk_vdec_drv_ids, comp_node);
101 if (!of_id) {
102 dev_err(&pdev->dev, "Failed to get match node\n");
103 return ERR_PTR(-EINVAL);
104 }
105
> 106 comp_idx = (enum mtk_vdec_hw_id)of_id->data;
107 mtk_v4l2_debug(4, "Get component:hw_id(%d),vdec_dev(0x%p),comp_node(0x%p)\n",
108 comp_idx, vdec_dev, comp_node);
109 vdec_dev->component_node[comp_idx] = comp_node;
110
111 component_match_add_release(&pdev->dev, &match, mtk_vdec_release_of,
112 mtk_vdec_compare_of, comp_node);
113 }
114
115 return match;
116 }
117
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 43006 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-19 16:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-19 16:06 [chrome-os:chromeos-5.10 8/147] drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c:106:14: warning: cast to smaller integer type 'enum mtk_vdec_hw_id' from 'const void *' 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.