Re: [PATCH v2] Expose PCIe SSD Status LED Management DSM in sysfs
by Dan Carpenter
Hi Stuart,
url: https://github.com/0day-ci/linux/commits/Stuart-Hayes/Expose-PCIe-SSD-Sta...
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: i386-randconfig-m021-20201111 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/pci/pci-ssdleds.c:47 ssdleds_dsm_set() warn: impossible condition '(val > (~0)) => (0-u32max > u32max)'
vim +47 drivers/pci/pci-ssdleds.c
e6eac5bf04a7aca Stuart Hayes 2020-11-10 34 static int ssdleds_dsm_set(struct device *dev, const char *buf, u64 dsm_func)
e6eac5bf04a7aca Stuart Hayes 2020-11-10 35 {
e6eac5bf04a7aca Stuart Hayes 2020-11-10 36 acpi_handle handle;
e6eac5bf04a7aca Stuart Hayes 2020-11-10 37 union acpi_object *out_obj, arg3[2];
e6eac5bf04a7aca Stuart Hayes 2020-11-10 38 struct pci_ssdleds_dsm_output *dsm_output;
e6eac5bf04a7aca Stuart Hayes 2020-11-10 39 u32 val;
e6eac5bf04a7aca Stuart Hayes 2020-11-10 40 int err;
e6eac5bf04a7aca Stuart Hayes 2020-11-10 41
e6eac5bf04a7aca Stuart Hayes 2020-11-10 42 handle = ACPI_HANDLE(dev);
e6eac5bf04a7aca Stuart Hayes 2020-11-10 43 if (!handle)
e6eac5bf04a7aca Stuart Hayes 2020-11-10 44 return -ENODEV;
e6eac5bf04a7aca Stuart Hayes 2020-11-10 45
e6eac5bf04a7aca Stuart Hayes 2020-11-10 46 err = kstrtou32(buf, 0, &val);
e6eac5bf04a7aca Stuart Hayes 2020-11-10 @47 if (err || val > U32_MAX)
^^^^^^^^^^^^^
This is not required. Just "if (err) return err;"'
e6eac5bf04a7aca Stuart Hayes 2020-11-10 48 return -EINVAL;
e6eac5bf04a7aca Stuart Hayes 2020-11-10 49
e6eac5bf04a7aca Stuart Hayes 2020-11-10 50 arg3[0].type = ACPI_TYPE_PACKAGE;
e6eac5bf04a7aca Stuart Hayes 2020-11-10 51 arg3[0].package.count = 1;
e6eac5bf04a7aca Stuart Hayes 2020-11-10 52 arg3[0].package.elements = &arg3[1];
e6eac5bf04a7aca Stuart Hayes 2020-11-10 53
e6eac5bf04a7aca Stuart Hayes 2020-11-10 54 arg3[1].type = ACPI_TYPE_BUFFER;
e6eac5bf04a7aca Stuart Hayes 2020-11-10 55 arg3[1].buffer.length = 4;
e6eac5bf04a7aca Stuart Hayes 2020-11-10 56 arg3[1].buffer.pointer = (u8 *)&val;
e6eac5bf04a7aca Stuart Hayes 2020-11-10 57
e6eac5bf04a7aca Stuart Hayes 2020-11-10 58 out_obj = acpi_evaluate_dsm_typed(handle, &pci_ssdleds_dsm_guid, 0x1,
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-review:UPDATE-20201112-234813/Dmytro-Shytyi/Re-PATCH-net-next-net-Variable-SLAAC-SLAAC-with-prefixes-of-arbitrary-length-in-PIO/20201111-014800 1/1] net/ipv6/addrconf.c:2888 addrconf_prefix_rcv() warn: inconsistent indenting
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20201112-234813/Dmytro-Sh...
head: b0c2d7a5f4037f89bed41815642b876706243575
commit: b0c2d7a5f4037f89bed41815642b876706243575 [1/1] net: Variable SLAAC: SLAAC with prefixes of arbitrary length in PIO
config: i386-randconfig-m021-20201113 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
New smatch warnings:
net/ipv6/addrconf.c:2888 addrconf_prefix_rcv() warn: inconsistent indenting
net/ipv6/addrconf.c:2888 addrconf_prefix_rcv() warn: ignoring unreachable code.
Old smatch warnings:
net/ipv6/addrconf.c:3757 addrconf_notify() error: potential null dereference 'idev'. (ipv6_add_dev returns null)
vim +2888 net/ipv6/addrconf.c
2763
2764 void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len, bool sllao)
2765 {
2766 struct prefix_info *pinfo;
2767 __u32 valid_lft;
2768 __u32 prefered_lft;
2769 int addr_type, err;
2770 u32 addr_flags = 0;
2771 struct inet6_dev *in6_dev;
2772 struct net *net = dev_net(dev);
2773
2774 pinfo = (struct prefix_info *) opt;
2775
2776 if (len < sizeof(struct prefix_info)) {
2777 netdev_dbg(dev, "addrconf: prefix option too short\n");
2778 return;
2779 }
2780
2781 /*
2782 * Validation checks ([ADDRCONF], page 19)
2783 */
2784
2785 addr_type = ipv6_addr_type(&pinfo->prefix);
2786
2787 if (addr_type & (IPV6_ADDR_MULTICAST|IPV6_ADDR_LINKLOCAL))
2788 return;
2789
2790 valid_lft = ntohl(pinfo->valid);
2791 prefered_lft = ntohl(pinfo->prefered);
2792
2793 if (prefered_lft > valid_lft) {
2794 net_warn_ratelimited("addrconf: prefix option has invalid lifetime\n");
2795 return;
2796 }
2797
2798 in6_dev = in6_dev_get(dev);
2799
2800 if (!in6_dev) {
2801 net_dbg_ratelimited("addrconf: device %s not configured\n",
2802 dev->name);
2803 return;
2804 }
2805
2806 /*
2807 * Two things going on here:
2808 * 1) Add routes for on-link prefixes
2809 * 2) Configure prefixes with the auto flag set
2810 */
2811
2812 if (pinfo->onlink) {
2813 struct fib6_info *rt;
2814 unsigned long rt_expires;
2815
2816 /* Avoid arithmetic overflow. Really, we could
2817 * save rt_expires in seconds, likely valid_lft,
2818 * but it would require division in fib gc, that it
2819 * not good.
2820 */
2821 if (HZ > USER_HZ)
2822 rt_expires = addrconf_timeout_fixup(valid_lft, HZ);
2823 else
2824 rt_expires = addrconf_timeout_fixup(valid_lft, USER_HZ);
2825
2826 if (addrconf_finite_timeout(rt_expires))
2827 rt_expires *= HZ;
2828
2829 rt = addrconf_get_prefix_route(&pinfo->prefix,
2830 pinfo->prefix_len,
2831 dev,
2832 RTF_ADDRCONF | RTF_PREFIX_RT,
2833 RTF_DEFAULT, true);
2834
2835 if (rt) {
2836 /* Autoconf prefix route */
2837 if (valid_lft == 0) {
2838 ip6_del_rt(net, rt, false);
2839 rt = NULL;
2840 } else if (addrconf_finite_timeout(rt_expires)) {
2841 /* not infinity */
2842 fib6_set_expires(rt, jiffies + rt_expires);
2843 } else {
2844 fib6_clean_expires(rt);
2845 }
2846 } else if (valid_lft) {
2847 clock_t expires = 0;
2848 int flags = RTF_ADDRCONF | RTF_PREFIX_RT;
2849 if (addrconf_finite_timeout(rt_expires)) {
2850 /* not infinity */
2851 flags |= RTF_EXPIRES;
2852 expires = jiffies_to_clock_t(rt_expires);
2853 }
2854 addrconf_prefix_route(&pinfo->prefix, pinfo->prefix_len,
2855 0, dev, expires, flags,
2856 GFP_ATOMIC);
2857 }
2858 fib6_info_release(rt);
2859 }
2860
2861 /* Try to figure out our local address for this prefix */
2862
2863 if (pinfo->autoconf && in6_dev->cnf.autoconf) {
2864 struct in6_addr addr;
2865 bool tokenized = false, dev_addr_generated = false;
2866
2867 if (pinfo->prefix_len == 64) {
2868 memcpy(&addr, &pinfo->prefix, 8);
2869
2870 if (!ipv6_addr_any(&in6_dev->token)) {
2871 read_lock_bh(&in6_dev->lock);
2872 memcpy(addr.s6_addr + 8,
2873 in6_dev->token.s6_addr + 8, 8);
2874 read_unlock_bh(&in6_dev->lock);
2875 tokenized = true;
2876 } else if (is_addr_mode_generate_stable(in6_dev) &&
2877 !ipv6_generate_stable_address(&addr, 0,
2878 in6_dev)) {
2879 addr_flags |= IFA_F_STABLE_PRIVACY;
2880 goto ok;
2881 } else if (ipv6_generate_eui64(addr.s6_addr + 8, dev) &&
2882 ipv6_inherit_eui64(addr.s6_addr + 8, in6_dev)) {
2883 goto put;
2884 } else {
2885 dev_addr_generated = true;
2886 }
2887 goto ok;
> 2888 goto put;
2889 } else if (((in6_dev->if_flags & IF_RA_VAR_PLEN) == IF_RA_VAR_PLEN) &&
2890 pinfo->prefix_len > 0 && pinfo->prefix_len <= 128) {
2891 /* SLAAC with prefixes of arbitrary length (Variable SLAAC).
2892 * draft-mishra-6man-variable-slaac
2893 * draft-mishra-v6ops-variable-slaac-problem-stmt
2894 * Contact: Dmytro Shytyi.
2895 */
2896 memcpy(&addr, &pinfo->prefix, 16);
2897 if (in6_dev->cnf.addr_gen_mode == IN6_ADDR_GEN_MODE_STABLE_PRIVACY) {
2898 if (!ipv6_generate_address_variable_plen(&addr,
2899 0,
2900 in6_dev,
2901 pinfo->prefix_len,
2902 true)) {
2903 addr_flags |= IFA_F_STABLE_PRIVACY;
2904 goto ok;
2905 }
2906 } else if (!ipv6_generate_address_variable_plen(&addr,
2907 0,
2908 in6_dev,
2909 pinfo->prefix_len,
2910 false)) {
2911 goto ok;
2912 }
2913 } else {
2914 net_dbg_ratelimited("IPv6: Prefix with unexpected length %d\n",
2915 pinfo->prefix_len);
2916 }
2917 goto put;
2918
2919 ok:
2920 err = addrconf_prefix_rcv_add_addr(net, dev, pinfo, in6_dev,
2921 &addr, addr_type,
2922 addr_flags, sllao,
2923 tokenized, valid_lft,
2924 prefered_lft);
2925 if (err)
2926 goto put;
2927
2928 /* Ignore error case here because previous prefix add addr was
2929 * successful which will be notified.
2930 */
2931 ndisc_ops_prefix_rcv_add_addr(net, dev, pinfo, in6_dev, &addr,
2932 addr_type, addr_flags, sllao,
2933 tokenized, valid_lft,
2934 prefered_lft,
2935 dev_addr_generated);
2936 }
2937 inet6_prefix_notify(RTM_NEWPREFIX, in6_dev, pinfo);
2938 put:
2939 in6_dev_put(in6_dev);
2940 }
2941
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH v1 1/2] mmc: Support kmsg dumper based on pstore/blk
by kernel test robot
Hi Bhaskara,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.10-rc3]
[cannot apply to next-20201112]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Bhaskara-Budiredla/mmc-support-c...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3d5e28bff7ad55aea081c1af516cc1c94a5eca7d
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-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
# https://github.com/0day-ci/linux/commit/fcb0b29143a613365939640cb07f0285f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Bhaskara-Budiredla/mmc-support-crash-logging-to-MMC-block-devices/20201112-142552
git checkout fcb0b29143a613365939640cb07f0285fdab9a1f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
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 >>, old ones prefixed by <<):
ERROR: modpost: "clk_set_min_rate" [sound/soc/atmel/snd-soc-mchp-spdifrx.ko] undefined!
>> ERROR: modpost: "mmcpstore_card_set" [drivers/mmc/core/mmc_block.ko] undefined!
ERROR: modpost: "scp_get_venc_hw_capa" [drivers/media/platform/mtk-vcodec/mtk-vcodec-common.ko] undefined!
ERROR: modpost: "scp_ipi_send" [drivers/media/platform/mtk-vcodec/mtk-vcodec-common.ko] undefined!
ERROR: modpost: "scp_put" [drivers/media/platform/mtk-vcodec/mtk-vcodec-common.ko] undefined!
ERROR: modpost: "scp_get" [drivers/media/platform/mtk-vcodec/mtk-vcodec-common.ko] undefined!
ERROR: modpost: "scp_get_vdec_hw_capa" [drivers/media/platform/mtk-vcodec/mtk-vcodec-common.ko] undefined!
ERROR: modpost: "scp_ipi_register" [drivers/media/platform/mtk-vcodec/mtk-vcodec-common.ko] undefined!
ERROR: modpost: "scp_mapping_dm_addr" [drivers/media/platform/mtk-vcodec/mtk-vcodec-common.ko] undefined!
ERROR: modpost: "scp_get_rproc" [drivers/media/platform/mtk-vcodec/mtk-vcodec-common.ko] undefined!
ERROR: modpost: "rproc_boot" [drivers/media/platform/mtk-vcodec/mtk-vcodec-common.ko] undefined!
ERROR: modpost: "__delay" [drivers/net/mdio/mdio-cavium.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[chrome-os:chromeos-4.19 47/50] drivers/gpu/drm/i915/intel_dp_hdcp.c:247:27: error: unused variable 'i915'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: b9a3f5405fb3783912a70780b9f51b8942feed91
commit: feb6def7862784cd0dc0395670cd825f6c874014 [47/50] BACKPORT: drm/i915: Add HDCP 1.4 support for MST connectors
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 feb6def7862784cd0dc0395670cd825f6c874014
# 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_dp_hdcp.c: In function 'intel_dp_mst_hdcp_toggle_signalling':
>> drivers/gpu/drm/i915/intel_dp_hdcp.c:247:27: error: unused variable 'i915' [-Werror=unused-variable]
247 | struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev);
| ^~~~
drivers/gpu/drm/i915/intel_dp_hdcp.c: In function 'intel_dp_mst_hdcp_check_link':
drivers/gpu/drm/i915/intel_dp_hdcp.c:265:27: error: unused variable 'i915' [-Werror=unused-variable]
265 | struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev);
| ^~~~
cc1: all warnings being treated as errors
vim +/i915 +247 drivers/gpu/drm/i915/intel_dp_hdcp.c
241
242 static int
243 intel_dp_mst_hdcp_toggle_signalling(struct intel_digital_port *dig_port,
244 enum transcoder cpu_transcoder,
245 bool enable)
246 {
> 247 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev);
248 int ret;
249
250 if (!enable)
251 usleep_range(6, 60); /* Bspec says >= 6us */
252
253 ret = intel_ddi_toggle_hdcp_signalling(&dig_port->base,
254 cpu_transcoder, enable);
255 if (ret)
256 DRM_DEBUG_KMS("%s HDCP signalling failed (%d)\n",
257 enable ? "Enable" : "Disable", ret);
258 return ret;
259 }
260
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[chrome-os:chromeos-4.19 27/50] drivers/gpu/drm/drm_hdcp.c:235:6: warning: no previous prototype for function 'drm_hdcp_request_srm'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: b9a3f5405fb3783912a70780b9f51b8942feed91
commit: 9602e2b071719b0f1e22a3a9ea2f5f3a6ba8f272 [27/50] UPSTREAM: drm: revocation check at drm subsystem
config: x86_64-randconfig-a005-20201113 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e0c35655b6e8186baef8840b26ba4090503b554)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.19
git checkout 9602e2b071719b0f1e22a3a9ea2f5f3a6ba8f272
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/drm_hdcp.c:235:6: warning: no previous prototype for function 'drm_hdcp_request_srm' [-Wmissing-prototypes]
void drm_hdcp_request_srm(struct drm_device *drm_dev)
^
drivers/gpu/drm/drm_hdcp.c:235:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void drm_hdcp_request_srm(struct drm_device *drm_dev)
^
static
>> drivers/gpu/drm/drm_hdcp.c:317:5: warning: no previous prototype for function 'drm_setup_hdcp_srm' [-Wmissing-prototypes]
int drm_setup_hdcp_srm(struct class *drm_class)
^
drivers/gpu/drm/drm_hdcp.c:317:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int drm_setup_hdcp_srm(struct class *drm_class)
^
static
>> drivers/gpu/drm/drm_hdcp.c:327:6: warning: no previous prototype for function 'drm_teardown_hdcp_srm' [-Wmissing-prototypes]
void drm_teardown_hdcp_srm(struct class *drm_class)
^
drivers/gpu/drm/drm_hdcp.c:327:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void drm_teardown_hdcp_srm(struct class *drm_class)
^
static
3 warnings generated.
vim +/drm_hdcp_request_srm +235 drivers/gpu/drm/drm_hdcp.c
234
> 235 void drm_hdcp_request_srm(struct drm_device *drm_dev)
236 {
237 char fw_name[36] = "display_hdcp_srm.bin";
238 const struct firmware *fw;
239
240 int ret;
241
242 ret = request_firmware_direct(&fw, (const char *)fw_name,
243 drm_dev->dev);
244 if (ret < 0)
245 goto exit;
246
247 if (fw->size && fw->data)
248 drm_hdcp_srm_update(fw->data, fw->size);
249
250 exit:
251 release_firmware(fw);
252 }
253
254 /**
255 * drm_hdcp_check_ksvs_revoked - Check the revoked status of the IDs
256 *
257 * @drm_dev: drm_device for which HDCP revocation check is requested
258 * @ksvs: List of KSVs (HDCP receiver IDs)
259 * @ksv_count: KSV count passed in through @ksvs
260 *
261 * This function reads the HDCP System renewability Message(SRM Table)
262 * from userspace as a firmware and parses it for the revoked HDCP
263 * KSVs(Receiver IDs) detected by DCP LLC. Once the revoked KSVs are known,
264 * revoked state of the KSVs in the list passed in by display drivers are
265 * decided and response is sent.
266 *
267 * SRM should be presented in the name of "display_hdcp_srm.bin".
268 *
269 * Returns:
270 * TRUE on any of the KSV is revoked, else FALSE.
271 */
272 bool drm_hdcp_check_ksvs_revoked(struct drm_device *drm_dev, u8 *ksvs,
273 u32 ksv_count)
274 {
275 u32 rev_ksv_cnt, cnt, i, j;
276 u8 *rev_ksv_list;
277
278 if (!srm_data)
279 return false;
280
281 mutex_lock(&srm_data->mutex);
282 drm_hdcp_request_srm(drm_dev);
283
284 rev_ksv_cnt = srm_data->revoked_ksv_cnt;
285 rev_ksv_list = srm_data->revoked_ksv_list;
286
287 /* If the Revoked ksv list is empty */
288 if (!rev_ksv_cnt || !rev_ksv_list) {
289 mutex_unlock(&srm_data->mutex);
290 return false;
291 }
292
293 for (cnt = 0; cnt < ksv_count; cnt++) {
294 rev_ksv_list = srm_data->revoked_ksv_list;
295 for (i = 0; i < rev_ksv_cnt; i++) {
296 for (j = 0; j < DRM_HDCP_KSV_LEN; j++)
297 if (ksvs[j] != rev_ksv_list[j]) {
298 break;
299 } else if (j == (DRM_HDCP_KSV_LEN - 1)) {
300 DRM_DEBUG("Revoked KSV is ");
301 drm_hdcp_print_ksv(ksvs);
302 mutex_unlock(&srm_data->mutex);
303 return true;
304 }
305 /* Move the offset to next KSV in the revoked list */
306 rev_ksv_list += DRM_HDCP_KSV_LEN;
307 }
308
309 /* Iterate to next ksv_offset */
310 ksvs += DRM_HDCP_KSV_LEN;
311 }
312 mutex_unlock(&srm_data->mutex);
313 return false;
314 }
315 EXPORT_SYMBOL_GPL(drm_hdcp_check_ksvs_revoked);
316
> 317 int drm_setup_hdcp_srm(struct class *drm_class)
318 {
319 srm_data = kzalloc(sizeof(*srm_data), GFP_KERNEL);
320 if (!srm_data)
321 return -ENOMEM;
322 mutex_init(&srm_data->mutex);
323
324 return 0;
325 }
326
> 327 void drm_teardown_hdcp_srm(struct class *drm_class)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
phy-qcom-usb-ss.c:undefined reference to `devm_platform_ioremap_resource'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba
commit: 6076967a500c4c6dad19d10d71863db1590a35ed phy: qualcomm: usb: Add SuperSpeed PHY driver
date: 8 months ago
config: s390-randconfig-r021-20201113 (attached as .config)
compiler: s390-linux-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6076967a500c4c6dad19d10d71863db1590a35ed
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 >>):
s390-linux-ld: drivers/irqchip/irq-renesas-rza1.o: in function `rza1_irqc_probe':
irq-renesas-rza1.c:(.text+0xb2): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/phy/qualcomm/phy-qcom-usb-ss.o: in function `qcom_ssphy_probe':
>> phy-qcom-usb-ss.c:(.text+0x36a): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.o: in function `dw_probe':
dw-axi-dmac-platform.c:(.text+0x1122): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/idma64.o: in function `idma64_platform_probe':
idma64.c:(.text+0x1210): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/iop-adma.o: in function `iop_adma_probe':
iop-adma.c:(.text+0x2b48): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/dma/k3dma.o: in function `k3_dma_probe':
k3dma.c:(.text+0xb88): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/dma/mv_xor.o: in function `mv_xor_probe':
mv_xor.c:(.text.unlikely+0x20f0): undefined reference to `devm_ioremap'
s390-linux-ld: mv_xor.c:(.text.unlikely+0x214c): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/dma/stm32-dmamux.o: in function `stm32_dmamux_probe':
stm32-dmamux.c:(.text+0x224): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/sprd-dma.o: in function `sprd_dma_probe':
sprd-dma.c:(.text+0x390): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/dma/xgene-dma.o: in function `xgene_dma_probe':
xgene-dma.c:(.text+0x1846): undefined reference to `devm_ioremap'
s390-linux-ld: xgene-dma.c:(.text+0x189a): undefined reference to `devm_ioremap'
s390-linux-ld: xgene-dma.c:(.text+0x18ee): undefined reference to `devm_ioremap'
s390-linux-ld: xgene-dma.c:(.text+0x1952): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/dma/ti/edma.o: in function `edma_probe':
edma.c:(.text+0x231c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/amlogic/meson-canvas.o: in function `meson_canvas_probe':
meson-canvas.c:(.text+0x438): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/amlogic/meson-clk-measure.o: in function `meson_msr_probe':
meson-clk-measure.c:(.text+0x142): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-brcmstb.o: in function `brcmstb_reset_probe':
reset-brcmstb.c:(.text+0x1d4): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-brcmstb-rescal.o: in function `brcm_rescal_reset_probe':
reset-brcmstb-rescal.c:(.text+0x208): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-lpc18xx.o:reset-lpc18xx.c:(.text+0x388): more undefined references to `devm_ioremap_resource' follow
s390-linux-ld: drivers/mfd/syscon.o: in function `syscon_probe':
syscon.c:(.text+0x1ce): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `set_cis_map':
cistpl.c:(.text+0x3c6): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0x3de): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0x470): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0x490): undefined reference to `iounmap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `release_cis_mem':
(.text+0x20fa): undefined reference to `iounmap'
s390-linux-ld: drivers/input/serio/sun4i-ps2.o: in function `sun4i_ps2_remove':
sun4i-ps2.c:(.text+0xe8): undefined reference to `iounmap'
s390-linux-ld: drivers/input/serio/sun4i-ps2.o: in function `sun4i_ps2_probe':
sun4i-ps2.c:(.text+0x4c2): undefined reference to `ioremap'
s390-linux-ld: sun4i-ps2.c:(.text+0x6f4): undefined reference to `iounmap'
s390-linux-ld: drivers/crypto/atmel-tdes.o: in function `atmel_tdes_probe':
atmel-tdes.c:(.text+0xe56): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/mediatek/mtk-platform.o: in function `mtk_crypto_probe':
mtk-platform.c:(.text+0x7fc): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0x27c): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x394): undefined reference to `iounmap'
s390-linux-ld: drivers/mailbox/imx-mailbox.o: in function `imx_mu_probe':
imx-mailbox.c:(.text+0x94): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mailbox/rockchip-mailbox.o: in function `rockchip_mbox_probe':
rockchip-mailbox.c:(.text+0x6ce): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/rpmsg/qcom_smd.o: in function `qcom_smd_channel_peek':
qcom_smd.c:(.text+0xc4a): undefined reference to `__ioread32_copy'
s390-linux-ld: qcom_smd.c:(.text+0xc82): undefined reference to `__ioread32_copy'
s390-linux-ld: drivers/rpmsg/qcom_smd.o: in function `qcom_smd_write_fifo':
qcom_smd.c:(.text+0x1408): undefined reference to `__iowrite32_copy'
s390-linux-ld: qcom_smd.c:(.text+0x1436): undefined reference to `__iowrite32_copy'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
dfl.c:undefined reference to `devm_ioremap'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba
commit: 89eb35e810a87d69c878d66e89c7f19f34539036 fpga: dfl: map feature mmio resources in their own feature drivers
date: 3 months ago
config: s390-randconfig-r025-20201113 (attached as .config)
compiler: s390-linux-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 89eb35e810a87d69c878d66e89c7f19f34539036
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 >>):
s390-linux-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
coherent.c:(.text+0x9de): undefined reference to `memremap'
s390-linux-ld: coherent.c:(.text+0xb8a): undefined reference to `memunmap'
s390-linux-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
coherent.c:(.text+0xf40): undefined reference to `memunmap'
s390-linux-ld: drivers/net/arcnet/com90xx.o: in function `com90xx_exit':
com90xx.c:(.exit.text+0x102): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/com90xx.o: in function `check_mirror':
com90xx.c:(.init.text+0x8a): undefined reference to `ioremap'
s390-linux-ld: com90xx.c:(.init.text+0x106): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/com90xx.o: in function `com90xx_probe':
com90xx.c:(.init.text+0x1a32): undefined reference to `ioremap'
s390-linux-ld: com90xx.c:(.init.text+0x207a): undefined reference to `iounmap'
s390-linux-ld: com90xx.c:(.init.text+0x339c): undefined reference to `iounmap'
s390-linux-ld: com90xx.c:(.init.text+0x35ac): undefined reference to `iounmap'
s390-linux-ld: com90xx.c:(.init.text+0x39c6): undefined reference to `ioremap'
s390-linux-ld: com90xx.c:(.init.text+0x3da8): undefined reference to `iounmap'
s390-linux-ld: com90xx.c:(.init.text+0x42c2): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `arc_rimi_exit':
arc-rimi.c:(.exit.text+0x58): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `arc_rimi_init':
arc-rimi.c:(.init.text+0x898): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.init.text+0x9e4): undefined reference to `iounmap'
s390-linux-ld: arc-rimi.c:(.init.text+0xf54): undefined reference to `iounmap'
s390-linux-ld: arc-rimi.c:(.init.text+0x1108): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.init.text+0x14b6): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `check_mirror':
arc-rimi.c:(.text.unlikely+0x56): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.text.unlikely+0xb2): undefined reference to `iounmap'
s390-linux-ld: drivers/net/ethernet/aurora/nb8800.o: in function `nb8800_probe':
nb8800.c:(.text+0x2b70): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `set_cis_map':
cistpl.c:(.text+0x632): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0x698): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0x86c): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0x8b2): undefined reference to `iounmap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `release_cis_mem':
cistpl.c:(.text+0x562e): undefined reference to `iounmap'
s390-linux-ld: drivers/input/serio/apbps2.o: in function `apbps2_of_probe':
apbps2.c:(.text+0x97a): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/fpga/dfl.o: in function `build_info_prepare':
>> dfl.c:(.text+0x1346): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/fpga/dfl.o: in function `build_info_complete':
>> dfl.c:(.text+0x1a34): undefined reference to `devm_iounmap'
s390-linux-ld: drivers/fpga/dfl.o: in function `dfl_fpga_dev_feature_init':
>> dfl.c:(.text+0x30fe): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/fpga/dfl.o: in function `build_info_commit_dev':
>> dfl.c:(.text+0x4bb6): undefined reference to `devm_ioremap_resource'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
csky-linux-ld: vdpa_sim.c:undefined reference to `mac_pton'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba
commit: 0c86d774883fa17e7c81b0c8838b88d06c2c911e vdpasim: allow to assign a MAC address
date: 2 weeks ago
config: csky-randconfig-p002-20201113 (attached as .config)
compiler: csky-linux-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0c86d774883fa17e7c81b0c8838b88d06c2c911e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=csky
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 >>):
csky-linux-ld: drivers/vdpa/vdpa_sim/vdpa_sim.o: in function `vdpasim_dev_init':
vdpa_sim.c:(.init.text+0xc8): undefined reference to `mac_pton'
>> csky-linux-ld: vdpa_sim.c:(.init.text+0x19c): undefined reference to `mac_pton'
csky-linux-ld: drivers/android/binder.o: in function `$t':
binder.c:(.text+0x8cd4): undefined reference to `__get_user_bad'
csky-linux-ld: binder.c:(.text+0x8de4): undefined reference to `__get_user_bad'
csky-linux-ld: drivers/android/binder.o: in function `$d':
binder.c:(.text+0x8e14): undefined reference to `__get_user_bad'
csky-linux-ld: drivers/android/binder.o: in function `$t':
binder.c:(.text+0x938e): undefined reference to `__get_user_bad'
csky-linux-ld: binder.c:(.text+0x93b6): undefined reference to `__get_user_bad'
csky-linux-ld: drivers/android/binder.o:binder.c:(.text+0x9430): more undefined references to `__get_user_bad' follow
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-stable-rc:linux-5.4.y 1315/3868] drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:987:20: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head: e72abf1f11a982a2a3fb555b5a9bd2eb2011dee8
commit: e307bfda74a9c66426313eca25ccfea877a50036 [1315/3868] ath9k_htc: Discard undersized packets
config: sh-randconfig-s032-20201103 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-107-gaf3512a6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.4.y
git checkout e307bfda74a9c66426313eca25ccfea877a50036
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c: note: in included file (through arch/sh/include/asm/unistd.h, include/uapi/linux/unistd.h, include/linux/compat.h, ...):
./arch/sh/include/generated/uapi/asm/unistd_32.h:409:37: sparse: sparse: no newline at end of file
>> drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:987:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] rs_datalen @@ got unsigned short [usertype] @@
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:987:20: sparse: expected restricted __be16 [usertype] rs_datalen
>> drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:987:20: sparse: got unsigned short [usertype]
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:988:13: sparse: sparse: restricted __be16 degrades to integer
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:1001:13: sparse: sparse: restricted __be16 degrades to integer
vim +987 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
962
963 static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv,
964 struct ath9k_htc_rxbuf *rxbuf,
965 struct ieee80211_rx_status *rx_status)
966
967 {
968 struct ieee80211_hdr *hdr;
969 struct ieee80211_hw *hw = priv->hw;
970 struct sk_buff *skb = rxbuf->skb;
971 struct ath_common *common = ath9k_hw_common(priv->ah);
972 struct ath_hw *ah = common->ah;
973 struct ath_htc_rx_status *rxstatus;
974 struct ath_rx_status rx_stats;
975 bool decrypt_error = false;
976 __be16 rs_datalen;
977 bool is_phyerr;
978
979 if (skb->len < HTC_RX_FRAME_HEADER_SIZE) {
980 ath_err(common, "Corrupted RX frame, dropping (len: %d)\n",
981 skb->len);
982 goto rx_next;
983 }
984
985 rxstatus = (struct ath_htc_rx_status *)skb->data;
986
> 987 rs_datalen = be16_to_cpu(rxstatus->rs_datalen);
988 if (unlikely(rs_datalen -
989 (skb->len - HTC_RX_FRAME_HEADER_SIZE) != 0)) {
990 ath_err(common,
991 "Corrupted RX data len, dropping (dlen: %d, skblen: %d)\n",
992 rs_datalen, skb->len);
993 goto rx_next;
994 }
995
996 is_phyerr = rxstatus->rs_status & ATH9K_RXERR_PHY;
997 /*
998 * Discard zero-length packets and packets smaller than an ACK
999 * which are not PHY_ERROR (short radar pulses have a length of 3)
1000 */
1001 if (unlikely(!rs_datalen || (rs_datalen < 10 && !is_phyerr))) {
1002 ath_warn(common,
1003 "Short RX data len, dropping (dlen: %d)\n",
1004 rs_datalen);
1005 goto rx_next;
1006 }
1007
1008 /* Get the RX status information */
1009
1010 memset(rx_status, 0, sizeof(struct ieee80211_rx_status));
1011
1012 /* Copy everything from ath_htc_rx_status (HTC_RX_FRAME_HEADER).
1013 * After this, we can drop this part of skb. */
1014 rx_status_htc_to_ath(&rx_stats, rxstatus);
1015 ath9k_htc_err_stat_rx(priv, &rx_stats);
1016 rx_status->mactime = be64_to_cpu(rxstatus->rs_tstamp);
1017 skb_pull(skb, HTC_RX_FRAME_HEADER_SIZE);
1018
1019 /*
1020 * everything but the rate is checked here, the rate check is done
1021 * separately to avoid doing two lookups for a rate for each frame.
1022 */
1023 hdr = (struct ieee80211_hdr *)skb->data;
1024
1025 /*
1026 * Process PHY errors and return so that the packet
1027 * can be dropped.
1028 */
1029 if (unlikely(is_phyerr)) {
1030 /* TODO: Not using DFS processing now. */
1031 if (ath_cmn_process_fft(&priv->spec_priv, hdr,
1032 &rx_stats, rx_status->mactime)) {
1033 /* TODO: Code to collect spectral scan statistics */
1034 }
1035 goto rx_next;
1036 }
1037
1038 if (!ath9k_cmn_rx_accept(common, hdr, rx_status, &rx_stats,
1039 &decrypt_error, priv->rxfilter))
1040 goto rx_next;
1041
1042 ath9k_cmn_rx_skb_postprocess(common, skb, &rx_stats,
1043 rx_status, decrypt_error);
1044
1045 if (ath9k_cmn_process_rate(common, hw, &rx_stats, rx_status))
1046 goto rx_next;
1047
1048 rx_stats.is_mybeacon = ath_is_mybeacon(common, hdr);
1049 ath9k_cmn_process_rssi(common, hw, &rx_stats, rx_status);
1050
1051 rx_status->band = ah->curchan->chan->band;
1052 rx_status->freq = ah->curchan->chan->center_freq;
1053 rx_status->antenna = rx_stats.rs_antenna;
1054 rx_status->flag |= RX_FLAG_MACTIME_END;
1055
1056 return true;
1057 rx_next:
1058 return false;
1059 }
1060
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[chrome-os:chromeos-4.19 40/50] drivers/gpu/drm/i915/intel_hdcp.c:785:21: error: unused variable 'dev'
by kernel test robot
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
1 year, 10 months