tree:
https://github.com/frank-w/BPI-R2-4.14 5.14-hdmilarb2
head: 77b4c96140f9bec5bb54fc804b401af1c9a6b4b5
commit: 6051a6601c1dc0460b99b601cc95fd7eac4c1bfd [26/48] mtk-mdp: add driver to probe mdp
components
config: x86_64-randconfig-a013-20210718 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
5d5b08761f944d5b9822d582378333cc4b36a0a7)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://github.com/frank-w/BPI-R2-4.14/commit/6051a6601c1dc0460b99b601cc9...
git remote add frank-w-bpi-r2-4.14
https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.14-hdmilarb2
git checkout 6051a6601c1dc0460b99b601cc95fd7eac4c1bfd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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-mdp/mtk_mdp_comp.c:62:18: error: no member named
'dev' in 'struct mtk_mdp_comp'
dev_err(comp->dev,
~~~~ ^
include/linux/dev_printk.h:112:11: note: expanded from macro 'dev_err'
_dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~
> drivers/media/platform/mtk-mdp/mtk_mdp_comp.c:124:4: warning:
cast to smaller integer type 'enum mtk_mdp_comp_type' from 'const void *'
[-Wvoid-pointer-to-enum-cast]
(enum
mtk_mdp_comp_type)of_device_get_match_data(dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +124 drivers/media/platform/mtk-mdp/mtk_mdp_comp.c
115
116 int mtk_mdp_comp_init(struct mtk_mdp_comp *comp, struct device *dev)
117 {
118 struct device_node *larb_node;
119 struct platform_device *larb_pdev;
120 int ret;
121 int i;
122 struct device_node *node = dev->of_node;
123 enum mtk_mdp_comp_type comp_type =
124 (enum mtk_mdp_comp_type)of_device_get_match_data(dev);
125
126 INIT_LIST_HEAD(&comp->node);
127
128 for (i = 0; i < ARRAY_SIZE(comp->clk); i++) {
129 comp->clk[i] = of_clk_get(node, i);
130 if (IS_ERR(comp->clk[i])) {
131 if (PTR_ERR(comp->clk[i]) != -EPROBE_DEFER)
132 dev_err(dev, "Failed to get clock\n");
133 ret = PTR_ERR(comp->clk[i]);
134 goto err;
135 }
136
137 /* Only RDMA needs two clocks */
138 if (comp_type != MTK_MDP_RDMA)
139 break;
140 }
141
142 /* Only DMA capable components need the LARB property */
143 comp->larb_dev = NULL;
144 if (comp_type != MTK_MDP_RDMA &&
145 comp_type != MTK_MDP_WDMA &&
146 comp_type != MTK_MDP_WROT)
147 return 0;
148
149 larb_node = of_parse_phandle(node, "mediatek,larb", 0);
150 if (!larb_node) {
151 dev_err(dev,
152 "Missing mediadek,larb phandle in %pOF node\n", node);
153 ret = -EINVAL;
154 goto err;
155 }
156
157 larb_pdev = of_find_device_by_node(larb_node);
158 if (!larb_pdev) {
159 dev_warn(dev, "Waiting for larb device %pOF\n", larb_node);
160 of_node_put(larb_node);
161 ret = -EPROBE_DEFER;
162 goto err;
163 }
164 of_node_put(larb_node);
165
166 comp->larb_dev = &larb_pdev->dev;
167
168 return 0;
169
170 err:
171 return ret;
172 }
173
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org