tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: b9a3f5405fb3783912a70780b9f51b8942feed91
commit: d9e7f80c21119b35d8b863f0f330743e1f9d818a [28/50] BACKPORT: drm/i915: SRM
revocation check for HDCP1.4 and 2.2
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 d9e7f80c21119b35d8b863f0f330743e1f9d818a
# 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:723:21: error: unused variable
'hdcp' [-Werror=unused-variable]
723 | struct intel_hdcp *hdcp =
&connector->hdcp;
| ^~~~
cc1: all warnings being treated as errors
vim +/hdcp +723 drivers/gpu/drm/i915/intel_hdcp.c
ee5e5e7a5e0fdec Sean Paul 2018-01-08 720
ee5e5e7a5e0fdec Sean Paul 2018-01-08 721 static int _intel_hdcp_enable(struct
intel_connector *connector)
ee5e5e7a5e0fdec Sean Paul 2018-01-08 722 {
a21f41f9d3a00e4 Ramalingam C 2018-10-29 @723 struct intel_hdcp *hdcp =
&connector->hdcp;
ee5e5e7a5e0fdec Sean Paul 2018-01-08 724 struct drm_i915_private *dev_priv =
connector->base.dev->dev_private;
6d983946513b051 Ramalingam C 2018-02-03 725 int i, ret, tries = 3;
ee5e5e7a5e0fdec Sean Paul 2018-01-08 726
cb340bf37173d6d Ramalingam C 2018-02-03 727 DRM_DEBUG_KMS("[%s:%d] HDCP is being
enabled...\n",
cb340bf37173d6d Ramalingam C 2018-02-03 728 connector->base.name,
connector->base.base.id);
cb340bf37173d6d Ramalingam C 2018-02-03 729
6308a31544284c1 Ramalingam C 2018-04-02 730 if (!hdcp_key_loadable(dev_priv)) {
6308a31544284c1 Ramalingam C 2018-04-02 731 DRM_ERROR("HDCP key Load is not
possible\n");
ee5e5e7a5e0fdec Sean Paul 2018-01-08 732 return -ENXIO;
ee5e5e7a5e0fdec Sean Paul 2018-01-08 733 }
ee5e5e7a5e0fdec Sean Paul 2018-01-08 734
ee5e5e7a5e0fdec Sean Paul 2018-01-08 735 for (i = 0; i < KEY_LOAD_TRIES; i++) {
ee5e5e7a5e0fdec Sean Paul 2018-01-08 736 ret = intel_hdcp_load_keys(dev_priv);
ee5e5e7a5e0fdec Sean Paul 2018-01-08 737 if (!ret)
ee5e5e7a5e0fdec Sean Paul 2018-01-08 738 break;
ee5e5e7a5e0fdec Sean Paul 2018-01-08 739 intel_hdcp_clear_keys(dev_priv);
ee5e5e7a5e0fdec Sean Paul 2018-01-08 740 }
ee5e5e7a5e0fdec Sean Paul 2018-01-08 741 if (ret) {
ee5e5e7a5e0fdec Sean Paul 2018-01-08 742 DRM_ERROR("Could not load HDCP keys,
(%d)\n", ret);
ee5e5e7a5e0fdec Sean Paul 2018-01-08 743 return ret;
ee5e5e7a5e0fdec Sean Paul 2018-01-08 744 }
ee5e5e7a5e0fdec Sean Paul 2018-01-08 745
6d983946513b051 Ramalingam C 2018-02-03 746 /* Incase of authentication failures, HDCP
spec expects reauth. */
6d983946513b051 Ramalingam C 2018-02-03 747 for (i = 0; i < tries; i++) {
d9e7f80c21119b3 Ramalingam C 2019-05-07 748 ret = intel_hdcp_auth(connector);
6d983946513b051 Ramalingam C 2018-02-03 749 if (!ret)
6d983946513b051 Ramalingam C 2018-02-03 750 return 0;
6d983946513b051 Ramalingam C 2018-02-03 751
6d983946513b051 Ramalingam C 2018-02-03 752 DRM_DEBUG_KMS("HDCP Auth failure
(%d)\n", ret);
a01244967d4311a Ramalingam C 2018-02-03 753
a01244967d4311a Ramalingam C 2018-02-03 754 /* Ensuring HDCP encryption and signalling
are stopped. */
a01244967d4311a Ramalingam C 2018-02-03 755 _intel_hdcp_disable(connector);
ee5e5e7a5e0fdec Sean Paul 2018-01-08 756 }
ee5e5e7a5e0fdec Sean Paul 2018-01-08 757
6d983946513b051 Ramalingam C 2018-02-03 758 DRM_ERROR("HDCP authentication failed
(%d tries/%d)\n", tries, ret);
6d983946513b051 Ramalingam C 2018-02-03 759 return ret;
ee5e5e7a5e0fdec Sean Paul 2018-01-08 760 }
ee5e5e7a5e0fdec Sean Paul 2018-01-08 761
:::::: The code at line 723 was first introduced by commit
:::::: a21f41f9d3a00e4362585459d502028389c1ef15 BACKPORT: drm/i915: wrapping all hdcp var
into intel_hdcp
:::::: TO: Ramalingam C <ramalingam.c(a)intel.com>
:::::: CC: Commit Bot <commit-bot(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org