tree:
git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git lr/ariel
head: 551dcc39c19e9fe56fe48a92ae52f31367ed8dd0
commit: b1253e8c01a0f0af5548c2b27fd64905ee46cfa2 [34/41] drm/armada: Use non-componentized
bridges
config: arm-randconfig-r005-20200617 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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 checkout b1253e8c01a0f0af5548c2b27fd64905ee46cfa2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/gpu/drm/armada/armada_drv.c: In function 'armada_drm_attach_bridge':
> drivers/gpu/drm/armada/armada_drv.c:133:11: error: implicit
declaration of function 'of_drm_find_bridge'
[-Werror=implicit-function-declaration]
133 | bridge = of_drm_find_bridge(np);
| ^~~~~~~~~~~~~~~~~~
> drivers/gpu/drm/armada/armada_drv.c:133:9: warning: assignment to
'struct drm_bridge *' from 'int' makes pointer from integer without a cast
[-Wint-conversion]
133 | bridge = of_drm_find_bridge(np);
| ^
> drivers/gpu/drm/armada/armada_drv.c:134:22: warning: format
'%x' expects argument of type 'unsigned int', but argument 2 has type
'struct drm_bridge *' [-Wformat=]
134 | printk ("XXX XX %08x
%pOFfcFn", bridge, np);
| ~~~^ ~~~~~~
| | |
| unsigned int struct drm_bridge *
> drivers/gpu/drm/armada/armada_drv.c:144:8: error: implicit
declaration of function 'drm_bridge_attach'
[-Werror=implicit-function-declaration]
144 | ret = drm_bridge_attach(encoder,
bridge, NULL, 0);
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/of_drm_find_bridge +133 drivers/gpu/drm/armada/armada_drv.c
122
123 static int armada_drm_attach_bridge(struct drm_device *drm, struct device_node
*np)
124 {
125 struct drm_encoder *encoder;
126 struct drm_bridge *bridge;
127 int ret;
128
129 encoder = devm_kzalloc(drm->dev, sizeof(*encoder), GFP_KERNEL);
130 if (encoder == NULL)
131 return -ENOMEM;
132
133 bridge = of_drm_find_bridge(np);
134 printk ("XXX XX %08x %pOFfcF\n", bridge, np);
135 if (!bridge)
136 return -EINVAL;
137
138 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, np);
139 ret = drm_encoder_init(drm, encoder, &armada_drm_encoder_funcs,
140 DRM_MODE_ENCODER_TMDS, NULL);
141 if (ret)
142 return ret;
143
144 ret = drm_bridge_attach(encoder, bridge, NULL, 0);
145 if (ret)
146 drm_encoder_cleanup(encoder);
147
148 return ret;
149 }
150
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org