tree:
git://linuxtv.org/hverkuil/media_tree.git cec-prepare-s-conn
head: f6860d6ae43818edcba2737691bcce31a7013295
commit: 10c3d4cb1a68f37e4896d51f4acfb8bdf27c4950 [7/13] drm_connector: create CEC
notifier
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add hverkuil-media
git://linuxtv.org/hverkuil/media_tree.git
git fetch --no-tags hverkuil-media cec-prepare-s-conn
git checkout 10c3d4cb1a68f37e4896d51f4acfb8bdf27c4950
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 >>):
drivers/gpu/drm/drm_connector.c: In function 'drm_connector_register':
> drivers/gpu/drm/drm_connector.c:534:3: error: implicit
declaration of function 'cec_notifier_drm_conn_register'; did you mean
'cec_notifier_conn_register'? [-Werror=implicit-function-declaration]
534 | cec_notifier_drm_conn_register(connector->dev->dev, &conn_info,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| cec_notifier_conn_register
drivers/gpu/drm/drm_connector.c:533:26: warning: assignment to 'struct cec_notifier
*' from 'int' makes pointer from integer without a cast [-Wint-conversion]
533 | connector->cec_notifier =
| ^
cc1: some warnings being treated as errors
vim +534 drivers/gpu/drm/drm_connector.c
490
491 /**
492 * drm_connector_register - register a connector
493 * @connector: the connector to register
494 *
495 * Register userspace interfaces for a connector. Only call this for connectors
496 * which can be hotplugged after drm_dev_register() has been called already,
497 * e.g. DP MST connectors. All other connectors will be registered automatically
498 * when calling drm_dev_register().
499 *
500 * Returns:
501 * Zero on success, error code on failure.
502 */
503 int drm_connector_register(struct drm_connector *connector)
504 {
505 struct cec_connector_info conn_info;
506 int ret = 0;
507
508 if (!connector->dev->registered)
509 return 0;
510
511 mutex_lock(&connector->mutex);
512 if (connector->registration_state != DRM_CONNECTOR_INITIALIZING)
513 goto unlock;
514
515 ret = drm_sysfs_connector_add(connector);
516 if (ret)
517 goto unlock;
518
519 drm_debugfs_connector_add(connector);
520
521 if (connector->funcs->late_register) {
522 ret = connector->funcs->late_register(connector);
523 if (ret)
524 goto err_debugfs;
525 }
526
527 drm_mode_object_register(connector->dev, &connector->base);
528
529 connector->registration_state = DRM_CONNECTOR_REGISTERED;
530
531 cec_fill_conn_info_from_drm(&conn_info, connector);
532
533 connector->cec_notifier =
534 cec_notifier_drm_conn_register(connector->dev->dev,
&conn_info,
535 connector->name,
536 connector->cec_hdmi_dev,
537 connector->cec_conn_name);
538 if (!connector->cec_notifier)
539 DRM_DEBUG_KMS("cec_notifier_drm_conn_register() failed\n");
540
541 /* Let userspace know we have a new connector */
542 drm_sysfs_hotplug_event(connector->dev);
543
544 goto unlock;
545
546 err_debugfs:
547 drm_debugfs_connector_remove(connector);
548 drm_sysfs_connector_remove(connector);
549 unlock:
550 mutex_unlock(&connector->mutex);
551 return ret;
552 }
553 EXPORT_SYMBOL(drm_connector_register);
554
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org