tree:
https://github.com/andersson/kernel wip/c630-5.8
head: ec3ba39ec298706d7661256cd9bcfa8d35f752dc
commit: 8b62fc5e193970502a05db475a5c7842005821ca [5/14] sn65dsi86: backlight
config: i386-randconfig-a011-20200713 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 8b62fc5e193970502a05db475a5c7842005821ca
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: drivers/gpu/drm/bridge/ti-sn65dsi86.o: in function `ti_sn_backlight_init':
> drivers/gpu/drm/bridge/ti-sn65dsi86.c:987: undefined reference to
`devm_backlight_device_register'
vim +987 drivers/gpu/drm/bridge/ti-sn65dsi86.c
966
967 static int ti_sn_backlight_init(struct ti_sn_bridge *pdata)
968 {
969 struct backlight_properties props = {};
970 struct backlight_device *bl;
971 struct device *dev = pdata->dev;
972 struct device_node *np = dev->of_node;
973 int ret;
974
975 ret = of_property_read_u32(np, "max-brightness",
&pdata->max_brightness);
976 if (ret == -EINVAL) {
977 DRM_ERROR("max-brightness omitted\n");
978 return 0;
979 }
980 else if (ret || pdata->max_brightness >= 0xffff) {
981 DRM_ERROR("invalid max-brightness\n");
982 return -EINVAL;
983 }
984
985 props.type = BACKLIGHT_RAW;
986 props.max_brightness = pdata->max_brightness;
987 bl = devm_backlight_device_register(dev, "sn65dsi86",
dev, pdata,
988 &ti_sn_backlight_ops, &props);
989 if (IS_ERR(bl)) {
990 DRM_ERROR("failed to register backlight device\n");
991 return PTR_ERR(bl);
992 }
993
994 return 0;
995 }
996
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org