tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: b9a3f5405fb3783912a70780b9f51b8942feed91
commit: 6c25eeced3b6a03023300941da6f11de31eab689 [40/50] BACKPORT: drm/i915: Don't
fully disable HDCP on a port if multiple pipes are using it
config: i386-randconfig-a006-20201113 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.19
git checkout 6c25eeced3b6a03023300941da6f11de31eab689
# 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 >>):
drivers/gpu/drm/i915/intel_hdcp.c: In function '_intel_hdcp_enable':
drivers/gpu/drm/i915/intel_hdcp.c:737:21: error: unused variable 'hdcp'
[-Werror=unused-variable]
737 | struct intel_hdcp *hdcp = &connector->hdcp;
| ^~~~
drivers/gpu/drm/i915/intel_hdcp.c: In function 'intel_hdcp_update_value':
> drivers/gpu/drm/i915/intel_hdcp.c:785:21: error: unused variable
'dev' [-Werror=unused-variable]
785 | struct drm_device *dev =
connector->base.dev;
| ^~~
cc1: all warnings being treated as errors
vim +/dev +785 drivers/gpu/drm/i915/intel_hdcp.c
781
782 static void intel_hdcp_update_value(struct intel_connector *connector,
783 u64 value, bool update_property)
784 {
785 struct drm_device *dev = connector->base.dev;
786 struct intel_digital_port *dig_port = conn_to_dig_port(connector);
787 struct intel_hdcp *hdcp = &connector->hdcp;
788
789 WARN_ON(!mutex_is_locked(&hdcp->mutex));
790
791 if (hdcp->value == value)
792 return;
793
794 WARN_ON(!mutex_is_locked(&dig_port->hdcp_mutex));
795
796 if (hdcp->value == DRM_MODE_CONTENT_PROTECTION_ENABLED) {
797 if (!WARN_ON(dig_port->num_hdcp_streams == 0))
798 dig_port->num_hdcp_streams--;
799 } else if (value == DRM_MODE_CONTENT_PROTECTION_ENABLED) {
800 dig_port->num_hdcp_streams++;
801 }
802
803 hdcp->value = value;
804 if (update_property) {
805 drm_connector_get(&connector->base);
806 schedule_work(&hdcp->prop_work);
807 }
808 }
809
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org