tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 1b71f6d620191293322fc574c20ed5130b794ac7
commit: f04d055758de31185e1b298147cae3de6349dba1 [31/67] CHROMIUM: media: mtk-vcodec: Use
component framework to manage each hardware information
config: arm-randconfig-r024-20210416 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
6a18cc23efad410db48a3ccfc233d215de7d4cb9)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout f04d055758de31185e1b298147cae3de6349dba1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c:70:25:
warning: no previous prototype for function 'mtk_vdec_match_add'
[-Wmissing-prototypes]
struct component_match *mtk_vdec_match_add(struct
mtk_vcodec_dev *vdec_dev)
^
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c:70:1: note: declare
'static' if the function is not intended to be used outside of this translation
unit
struct component_match *mtk_vdec_match_add(struct mtk_vcodec_dev *vdec_dev)
^
static
1 warning generated.
vim +/mtk_vdec_match_add +70 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c
69
70 struct component_match *mtk_vdec_match_add(struct mtk_vcodec_dev
*vdec_dev)
71 {
72 struct platform_device *pdev = vdec_dev->plat_dev;
73 struct component_match *match = NULL;
74 int i;
75
76 for (i = 0; i < ARRAY_SIZE(mtk_vdec_drv_ids); i++) {
77 struct device_node *comp_node;
78 enum mtk_vdec_hw_id comp_idx;
79 const struct of_device_id *of_id;
80
81 comp_node = of_find_compatible_node(NULL, NULL,
82 mtk_vdec_drv_ids[i].compatible);
83 if (!comp_node)
84 continue;
85
86 if (!of_device_is_available(comp_node)) {
87 of_node_put(comp_node);
88 dev_err(&pdev->dev, "Fail to get MMSYS node\n");
89 continue;
90 }
91
92 of_id = of_match_node(mtk_vdec_drv_ids, comp_node);
93 if (!of_id) {
94 dev_err(&pdev->dev, "Failed to get match node\n");
95 return ERR_PTR(-EINVAL);
96 }
97
98 comp_idx = (enum mtk_vdec_hw_id)of_id->data;
99 mtk_v4l2_debug(4, "Get
component:hw_id(%d),vdec_dev(0x%p),comp_node(0x%p)\n",
100 comp_idx, vdec_dev, comp_node);
101 vdec_dev->component_node[comp_idx] = comp_node;
102
103 component_match_add_release(&pdev->dev, &match, mtk_vdec_release_of,
104 mtk_vdec_compare_of, comp_node);
105 }
106
107 return match;
108 }
109
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org