[linux-review:UPDATE-20200612-150729/Daniel-Vetter/dma-fence-lockdep-annotations-round-2/20200604-161907 2/18] htmldocs: drivers/dma-buf/dma-buf.c:1: warning: 'fence polling' not found
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20200612-150729/Daniel-Ve...
head: ad207bfacfe09a2c73fdc80a3d57220b52051cd5
commit: da13ac2ff6d8f36372fe899390fe0d8cc637177c [2/18] dma-buf: minor doc touch-ups
reproduce: make htmldocs
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 >>, old ones prefixed by <<):
include/kunit/test.h:182: warning: Function parameter or member 'debugfs' not described in 'kunit_suite'
include/kunit/test.h:182: warning: Function parameter or member 'log' not described in 'kunit_suite'
include/kunit/test.h:268: warning: Excess function parameter 'suites' description in 'kunit_test_suites'
include/net/mac80211.h:832: warning: Enum value 'IEEE80211_TX_CTRL_HW_80211_ENCAP' not described in enum 'mac80211_tx_control_flags'
net/mac80211/sta_info.h:104: warning: Enum value 'WLAN_STA_USES_ENCRYPTION' not described in enum 'ieee80211_sta_info_flags'
>> drivers/dma-buf/dma-buf.c:1: warning: 'fence polling' not found
include/linux/gpio/driver.h:499: warning: Function parameter or member 'gc' not described in 'gpiochip_add_data'
include/linux/gpio/driver.h:499: warning: Excess function parameter 'chip' description in 'gpiochip_add_data'
include/linux/iio/iio.h:574: warning: Function parameter or member 'read_buf' not described in 'iio_dev'
include/linux/iio/iio.h:574: warning: Function parameter or member 'read_buf_len' not described in 'iio_dev'
drivers/infiniband/core/umem_odp.c:161: warning: Function parameter or member 'ops' not described in 'ib_umem_odp_alloc_child'
drivers/infiniband/core/umem_odp.c:225: warning: Function parameter or member 'ops' not described in 'ib_umem_odp_get'
drivers/infiniband/ulp/iser/iscsi_iser.h:401: warning: Function parameter or member 'all_list' not described in 'iser_fr_desc'
drivers/infiniband/ulp/iser/iscsi_iser.h:415: warning: Function parameter or member 'all_list' not described in 'iser_fr_pool'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:148: warning: Function parameter or member 'rsvd0' not described in 'opa_vesw_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:148: warning: Function parameter or member 'rsvd1' not described in 'opa_vesw_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:148: warning: Function parameter or member 'rsvd2' not described in 'opa_vesw_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:148: warning: Function parameter or member 'rsvd3' not described in 'opa_vesw_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:148: warning: Function parameter or member 'rsvd4' not described in 'opa_vesw_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:205: warning: Function parameter or member 'rsvd0' not described in 'opa_per_veswport_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:205: warning: Function parameter or member 'rsvd1' not described in 'opa_per_veswport_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:205: warning: Function parameter or member 'rsvd2' not described in 'opa_per_veswport_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:205: warning: Function parameter or member 'rsvd3' not described in 'opa_per_veswport_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:342: warning: Function parameter or member 'reserved' not described in 'opa_veswport_summary_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd0' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd1' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd2' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd3' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd4' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd5' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd6' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd7' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd8' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd9' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:460: warning: Function parameter or member 'reserved' not described in 'opa_vnic_vema_mad'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:485: warning: Function parameter or member 'reserved' not described in 'opa_vnic_notice_attr'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:500: warning: Function parameter or member 'reserved' not described in 'opa_vnic_vema_mad_trap'
include/linux/input/sparse-keymap.h:43: warning: Function parameter or member 'sw' not described in 'key_entry'
include/linux/regulator/machine.h:196: warning: Function parameter or member 'max_uV_step' not described in 'regulation_constraints'
include/linux/regulator/driver.h:223: warning: Function parameter or member 'resume' not described in 'regulator_ops'
include/linux/spi/spi.h:664: warning: Function parameter or member 'buswidth_override_bits' not described in 'spi_controller'
include/linux/spi/spi.h:943: warning: Function parameter or member 'timestamped' not described in 'spi_transfer'
drivers/usb/typec/bus.c:1: warning: 'typec_altmode_register_driver' not found
drivers/usb/typec/bus.c:1: warning: 'typec_altmode_unregister_driver' not found
include/linux/usb.h:713: warning: Function parameter or member 'use_generic_driver' not described in 'usb_device'
include/linux/usb.h:1253: warning: Function parameter or member 'match' not described in 'usb_device_driver'
include/linux/usb.h:1253: warning: Function parameter or member 'id_table' not described in 'usb_device_driver'
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c:1: warning: no structured comments found
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1: warning: no structured comments found
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3388: warning: Excess function parameter 'suspend' description in 'amdgpu_device_suspend'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3485: warning: Excess function parameter 'resume' description in 'amdgpu_device_resume'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3388: warning: Excess function parameter 'suspend' description in 'amdgpu_device_suspend'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3485: warning: Excess function parameter 'resume' description in 'amdgpu_device_resume'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3388: warning: Excess function parameter 'suspend' description in 'amdgpu_device_suspend'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3485: warning: Excess function parameter 'resume' description in 'amdgpu_device_resume'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'tbo' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'place' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'tbo' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'place' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'tbo' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'place' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'tbo' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'place' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c:279: warning: Excess function parameter 'tbo' description in 'amdgpu_gtt_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c:279: warning: Excess function parameter 'place' description in 'amdgpu_gtt_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c:279: warning: Excess function parameter 'tbo' description in 'amdgpu_gtt_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c:279: warning: Excess function parameter 'place' description in 'amdgpu_gtt_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3388: warning: Excess function parameter 'suspend' description in 'amdgpu_device_suspend'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3485: warning: Excess function parameter 'resume' description in 'amdgpu_device_resume'
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:332: warning: Function parameter or member 'hdcp_workqueue' not described in 'amdgpu_display_manager'
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:332: warning: Function parameter or member 'cached_dc_state' not described in 'amdgpu_display_manager'
include/drm/drm_dp_helper.h:1767: warning: Function parameter or member 'hbr2_reset' not described in 'drm_dp_phy_test_params'
include/linux/host1x.h:69: warning: Function parameter or member 'parent' not described in 'host1x_client'
include/linux/host1x.h:69: warning: Function parameter or member 'usecount' not described in 'host1x_client'
include/linux/host1x.h:69: warning: Function parameter or member 'lock' not described in 'host1x_client'
include/linux/phylink.h:54: warning: Function parameter or member '__ETHTOOL_DECLARE_LINK_MODE_MASK(advertising' not described in 'phylink_link_state'
include/linux/phylink.h:54: warning: Function parameter or member '__ETHTOOL_DECLARE_LINK_MODE_MASK(lp_advertising' not described in 'phylink_link_state'
include/linux/phylink.h:333: warning: Function parameter or member 'pcs_config' not described in 'int'
include/linux/phylink.h:333: warning: Excess function parameter 'config' description in 'int'
include/linux/phylink.h:333: warning: Excess function parameter 'mode' description in 'int'
include/linux/phylink.h:333: warning: Excess function parameter 'interface' description in 'int'
include/linux/phylink.h:333: warning: Excess function parameter 'advertising' description in 'int'
include/linux/phylink.h:342: warning: Function parameter or member 'pcs_an_restart' not described in 'void'
include/linux/phylink.h:342: warning: Excess function parameter 'config' description in 'void'
include/linux/phylink.h:358: warning: Function parameter or member 'pcs_link_up' not described in 'void'
include/linux/phylink.h:358: warning: Excess function parameter 'config' description in 'void'
include/linux/phylink.h:358: warning: Excess function parameter 'mode' description in 'void'
include/linux/phylink.h:358: warning: Excess function parameter 'interface' description in 'void'
include/linux/phylink.h:358: warning: Excess function parameter 'speed' description in 'void'
include/linux/phylink.h:358: warning: Excess function parameter 'duplex' description in 'void'
sound/soc/soc-pcm.c:220: warning: Function parameter or member 'action' not described in 'snd_soc_runtime_action'
Documentation/PCI/boot-interrupts.rst:42: WARNING: Unexpected indentation.
Documentation/PCI/boot-interrupts.rst:52: WARNING: Block quote ends without a blank line; unexpected unindent.
Documentation/PCI/boot-interrupts.rst:92: WARNING: Unexpected indentation.
Documentation/PCI/boot-interrupts.rst:98: WARNING: Unexpected indentation.
Documentation/PCI/boot-interrupts.rst:136: WARNING: Unexpected indentation.
Documentation/PCI/endpoint/pci-endpoint.rst:164: WARNING: duplicate label pci/endpoint/pci-endpoint:apis for the pci endpoint function driver, other instance in Documentation/PCI/endpoint/pci-endpoint.rst
Documentation/PCI/endpoint/pci-endpoint.rst:208: WARNING: duplicate label pci/endpoint/pci-endpoint:other apis, other instance in Documentation/PCI/endpoint/pci-endpoint.rst
Documentation/RCU/Design/Data-Structures/Data-Structures.rst:377: WARNING: duplicate label rcu/design/data-structures/data-structures:grace-period tracking, other instance in Documentation/RCU/Design/Data-Structures/Data-Structures.rst
Documentation/admin-guide/LSM/Smack.rst:380: WARNING: duplicate label admin-guide/lsm/smack:smack, other instance in Documentation/admin-guide/LSM/Smack.rst
Documentation/admin-guide/cgroup-v2.rst:2508: WARNING: duplicate label admin-guide/cgroup-v2:memory, other instance in Documentation/admin-guide/cgroup-v2.rst
Documentation/admin-guide/device-mapper/thin-provisioning.rst:158: WARNING: duplicate label admin-guide/device-mapper/thin-provisioning:thin provisioning, other instance in Documentation/admin-guide/device-mapper/thin-provisioning.rst
Documentation/admin-guide/hw-vuln/spectre.rst:421: WARNING: duplicate label admin-guide/hw-vuln/spectre:spectre variant 1, other instance in Documentation/admin-guide/hw-vuln/spectre.rst
Documentation/admin-guide/hw-vuln/spectre.rst:439: WARNING: duplicate label admin-guide/hw-vuln/spectre:spectre variant 2, other instance in Documentation/admin-guide/hw-vuln/spectre.rst
Documentation/admin-guide/kdump/vmcoreinfo.rst:391: WARNING: duplicate label admin-guide/kdump/vmcoreinfo:kerneloffset, other instance in Documentation/admin-guide/kdump/vmcoreinfo.rst
Documentation/admin-guide/kdump/vmcoreinfo.rst:434: WARNING: duplicate label admin-guide/kdump/vmcoreinfo:contig_page_data, other instance in Documentation/admin-guide/kdump/vmcoreinfo.rst
vim +1 drivers/dma-buf/dma-buf.c
caab277b1de0a2 drivers/dma-buf/dma-buf.c Thomas Gleixner 2019-06-03 @1 // SPDX-License-Identifier: GPL-2.0-only
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 2 /*
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 3 * Framework for buffer objects that can be shared across devices/subsystems.
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 4 *
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 5 * Copyright(C) 2011 Linaro Limited. All rights reserved.
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 6 * Author: Sumit Semwal <sumit.semwal(a)ti.com>
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 7 *
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 8 * Many thanks to linaro-mm-sig list, and specially
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 9 * Arnd Bergmann <arnd(a)arndb.de>, Rob Clark <rob(a)ti.com> and
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 10 * Daniel Vetter <daniel(a)ffwll.ch> for their support in creation and
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 11 * refining of this idea.
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 12 */
d15bd7ee445d07 drivers/base/dma-buf.c Sumit Semwal 2011-12-26 13
:::::: The code at line 1 was first introduced by commit
:::::: caab277b1de0a22b675c4c95fc7b285ec2eb5bf5 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234
:::::: TO: Thomas Gleixner <tglx(a)linutronix.de>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH 6/8] drm/vmwgfx: Use __drm_atomic_helper_crtc_reset
by kernel test robot
Hi Daniel,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master v5.7 next-20200612]
[cannot apply to drm/drm-next]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Daniel-Vetter/drm-atomic-helper-...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-rhel-7.6 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
# 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 >>, old ones prefixed by <<):
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c: In function 'vmw_du_primary_plane_atomic_check':
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:460:31: warning: variable 'vcs' set but not used [-Wunused-but-set-variable]
460 | struct vmw_connector_state *vcs;
| ^~~
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c: In function 'vmw_du_crtc_reset':
<< In file included from drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:37:
>> drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:632:40: error: 'state' undeclared (first use in this function); did you mean 'statx'?
632 | __drm_atomic_helper_crtc_reset(crtc, &state->base);
| ^~~~~
| statx
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:632:40: note: each undeclared identifier is reported only once for each function it appears in
In file included from drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:37:
At top level:
drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:256:23: warning: 'vmw_cursor_plane_formats' defined but not used [-Wunused-const-variable=]
256 | static const uint32_t vmw_cursor_plane_formats[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:248:23: warning: 'vmw_primary_plane_formats' defined but not used [-Wunused-const-variable=]
248 | static const uint32_t vmw_primary_plane_formats[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +632 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
604
605
606 /**
607 * vmw_du_crtc_reset - creates a blank vmw crtc state
608 * @crtc: DRM crtc
609 *
610 * Resets the atomic state for @crtc by freeing the state pointer (which
611 * might be NULL, e.g. at driver load time) and allocating a new empty state
612 * object.
613 */
614 void vmw_du_crtc_reset(struct drm_crtc *crtc)
615 {
616 struct vmw_crtc_state *vcs;
617
618
619 if (crtc->state) {
620 __drm_atomic_helper_crtc_destroy_state(crtc->state);
621
622 kfree(vmw_crtc_state_to_vcs(crtc->state));
623 }
624
625 vcs = kzalloc(sizeof(*vcs), GFP_KERNEL);
626
627 if (!vcs) {
628 DRM_ERROR("Cannot allocate vmw_crtc_state\n");
629 return;
630 }
631
> 632 __drm_atomic_helper_crtc_reset(crtc, &state->base);
633 }
634
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH] vimc: Add colors' order over test image
by kernel test robot
Hi Kaaira,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on next-20200612]
[cannot apply to v5.7]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Kaaira-Gupta/vimc-Add-colors-ord...
base: git://linuxtv.org/media_tree.git master
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3b43f006294971b8049d4807110032169780e5b8)
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
# 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 error/warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2012:52: warning: converting the enum constant to a boolean [-Wint-in-bool-context]
case (TPG_PAT_75_COLORBAR || TPG_PAT_100_COLORBAR || TPG_PAT_CSC_COLORBAR):
^
>> drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2027:3: error: non-void function 'tpg_g_color_order' should return a value [-Wreturn-type]
return;
^
1 warning and 1 error generated.
vim +/tpg_g_color_order +2027 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
2008
2009 const char *tpg_g_color_order(const struct tpg_data *tpg)
2010 {
2011 switch (tpg->pattern) {
> 2012 case (TPG_PAT_75_COLORBAR || TPG_PAT_100_COLORBAR || TPG_PAT_CSC_COLORBAR):
2013 return "Left to right: white, yellow, cyan, green, magenta, red, blue, black";
2014 case TPG_PAT_100_HCOLORBAR:
2015 return "Top to bottom: white, yellow, cyan, green, magenta, red, blue, black";
2016 case TPG_PAT_BLACK:
2017 return "Black";
2018 case TPG_PAT_WHITE:
2019 return "White";
2020 case TPG_PAT_RED:
2021 return "Red";
2022 case TPG_PAT_GREEN:
2023 return "Green";
2024 case TPG_PAT_BLUE:
2025 return "Blue";
2026 default:
> 2027 return;
2028 }
2029 }
2030
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH 1/3] mxl692: MaxLinear 692 ATSC demod-tuner driver
by kernel test robot
Hi Brad,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v5.7 next-20200612]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Brad-Love/MaxLinear-mxl692-demod...
base: git://linuxtv.org/media_tree.git master
config: i386-randconfig-s002-20200612 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-250-g42323db3-dirty
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
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/media/dvb-frontends/mxl692.c:223:27: sparse: sparse: invalid assignment: +=
>> drivers/media/dvb-frontends/mxl692.c:223:27: sparse: left side has type unsigned int
>> drivers/media/dvb-frontends/mxl692.c:223:27: sparse: right side has type restricted __be32
drivers/media/dvb-frontends/mxl692.c:227:27: sparse: sparse: invalid assignment: +=
drivers/media/dvb-frontends/mxl692.c:227:27: sparse: left side has type unsigned int
drivers/media/dvb-frontends/mxl692.c:227:27: sparse: right side has type restricted __be32
>> drivers/media/dvb-frontends/mxl692.c:231:16: sparse: sparse: cast to restricted __be32
>> drivers/media/dvb-frontends/mxl692.c:231:16: sparse: sparse: cast to restricted __be32
>> drivers/media/dvb-frontends/mxl692.c:231:16: sparse: sparse: cast to restricted __be32
>> drivers/media/dvb-frontends/mxl692.c:231:16: sparse: sparse: cast to restricted __be32
>> drivers/media/dvb-frontends/mxl692.c:231:16: sparse: sparse: cast to restricted __be32
>> drivers/media/dvb-frontends/mxl692.c:231:16: sparse: sparse: cast to restricted __be32
>> drivers/media/dvb-frontends/mxl692.c:249:14: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] temp @@ got restricted __be32 [usertype] @@
>> drivers/media/dvb-frontends/mxl692.c:249:14: sparse: expected unsigned int [usertype] temp
>> drivers/media/dvb-frontends/mxl692.c:249:14: sparse: got restricted __be32 [usertype]
>> drivers/media/dvb-frontends/mxl692.c:293:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __le32 [usertype] @@
>> drivers/media/dvb-frontends/mxl692.c:293:44: sparse: expected unsigned int [usertype]
>> drivers/media/dvb-frontends/mxl692.c:293:44: sparse: got restricted __le32 [usertype]
vim +223 drivers/media/dvb-frontends/mxl692.c
217
218 static u32 mxl692_checksum(u8 *buffer, u32 size)
219 {
220 u32 ix, remainder = 0, cur_cksum = 0;
221
222 for (ix = 0; ix < size / 4; ix++)
> 223 cur_cksum += cpu_to_be32(*(u32 *)(buffer +
224 (ix * sizeof(u32))));
225 remainder = size % 4;
226 if (remainder > 0)
227 cur_cksum += cpu_to_be32(*((u32 *)&buffer[size - remainder]));
228
229 cur_cksum ^= 0xDEADBEEF;
230
> 231 return be32_to_cpu(cur_cksum);
232 }
233
234 static int mxl692_validate_fw_header(const u8 *buffer, u32 buf_len)
235 {
236 int status = 0;
237 u32 ix, temp = 0;
238 u32 *local_buf = NULL;
239
240 if (buffer[0] != 0x4D || buffer[1] != 0x31 ||
241 buffer[2] != 0x10 || buffer[3] != 0x02 ||
242 buffer[4] != 0x40 || buffer[5] != 0x00 ||
243 buffer[6] != 0x00 || buffer[7] != 0x80) {
244 status = -EINVAL;
245 goto err_finish;
246 }
247
248 local_buf = (u32 *)(buffer + 8);
> 249 temp = cpu_to_be32(*(u32 *)local_buf);
250
251 if ((buf_len - 16) != (temp >> 8)) {
252 status = -EINVAL;
253 goto err_finish;
254 }
255
256 temp = 0;
257 for (ix = 16; ix < buf_len; ix++)
258 temp += buffer[ix];
259
260 if ((u8)temp != buffer[11])
261 status = -EINVAL;
262 err_finish:
263 if (status)
264 pr_err("%s failed! %d\n", __func__, status);
265 return status;
266 }
267
268 static int mxl692_write_fw_block(struct mxl692_dev *dev, const u8 *buffer,
269 u32 buf_len, u32 *index)
270 {
271 int status = 0;
272 u32 ix = 0, total_len = 0, addr = 0, chunk_len = 0, prevchunk_len = 0;
273 u8 local_buf[MXL_EAGLE_MAX_I2C_PACKET_SIZE] = {}, *plocal_buf = NULL;
274 int payload_max = MXL_EAGLE_MAX_I2C_PACKET_SIZE - MXL_EAGLE_I2C_MHEADER_SIZE;
275
276 ix = *index;
277
278 if (buffer[ix] == 0x53) {
279 total_len = buffer[ix + 1] << 16 | buffer[ix + 2] << 8 | buffer[ix + 3];
280 total_len = (total_len + 3) & ~3;
281 addr = buffer[ix + 4] << 24 | buffer[ix + 5] << 16 |
282 buffer[ix + 6] << 8 | buffer[ix + 7];
283 ix += MXL_EAGLE_FW_SEGMENT_HEADER_SIZE;
284
285 while ((total_len > 0) && (status == 0)) {
286 plocal_buf = local_buf;
287 chunk_len = (total_len < payload_max) ?
288 total_len : payload_max;
289
290 *plocal_buf++ = 0xFC;
291 *plocal_buf++ = chunk_len + sizeof(u32);
292
> 293 *(u32 *)plocal_buf = cpu_to_le32(addr + prevchunk_len);
294 plocal_buf += sizeof(u32);
295
296 memcpy(plocal_buf, &buffer[ix], chunk_len);
297 convert_endian(chunk_len, plocal_buf);
298
299 if (mxl692_i2c_write(dev, local_buf,
300 (chunk_len + MXL_EAGLE_I2C_MHEADER_SIZE)) < 0) {
301 status = -EREMOTEIO;
302 break;
303 }
304
305 prevchunk_len += chunk_len;
306 total_len -= chunk_len;
307 ix += chunk_len;
308 }
309 *index = ix;
310 } else {
311 status = -EINVAL;
312 }
313
314 if (status)
315 dev_err(&dev->i2c_client->dev, "err %d\n", status);
316
317 return status;
318 }
319
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[bluetooth-next:master 26/26] net/bluetooth/mgmt.c:7306:29: error: use of undeclared identifier 'MGMT_SET_DEF_SYSTEM_CONFIG'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
head: 80b6da9e26dd7a92b31056af84a016240b5ef137
commit: 80b6da9e26dd7a92b31056af84a016240b5ef137 [26/26] Bluetooth: implement read/set default system parameters mgmt
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3b43f006294971b8049d4807110032169780e5b8)
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 checkout 80b6da9e26dd7a92b31056af84a016240b5ef137
# 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 errors (new ones prefixed by >>, old ones prefixed by <<):
>> net/bluetooth/mgmt.c:7306:29: error: use of undeclared identifier 'MGMT_SET_DEF_SYSTEM_CONFIG'
{ set_def_system_config, MGMT_SET_DEF_SYSTEM_CONFIG,
^
>> net/bluetooth/mgmt.c:8332:19: error: invalid application of 'sizeof' to an incomplete type 'const struct hci_mgmt_handler []'
.handler_count = ARRAY_SIZE(mgmt_handlers),
^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:47:32: note: expanded from macro 'ARRAY_SIZE'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~
2 errors generated.
vim +/MGMT_SET_DEF_SYSTEM_CONFIG +7306 net/bluetooth/mgmt.c
7198
7199 static const struct hci_mgmt_handler mgmt_handlers[] = {
7200 { NULL }, /* 0x0000 (no command) */
7201 { read_version, MGMT_READ_VERSION_SIZE,
7202 HCI_MGMT_NO_HDEV |
7203 HCI_MGMT_UNTRUSTED },
7204 { read_commands, MGMT_READ_COMMANDS_SIZE,
7205 HCI_MGMT_NO_HDEV |
7206 HCI_MGMT_UNTRUSTED },
7207 { read_index_list, MGMT_READ_INDEX_LIST_SIZE,
7208 HCI_MGMT_NO_HDEV |
7209 HCI_MGMT_UNTRUSTED },
7210 { read_controller_info, MGMT_READ_INFO_SIZE,
7211 HCI_MGMT_UNTRUSTED },
7212 { set_powered, MGMT_SETTING_SIZE },
7213 { set_discoverable, MGMT_SET_DISCOVERABLE_SIZE },
7214 { set_connectable, MGMT_SETTING_SIZE },
7215 { set_fast_connectable, MGMT_SETTING_SIZE },
7216 { set_bondable, MGMT_SETTING_SIZE },
7217 { set_link_security, MGMT_SETTING_SIZE },
7218 { set_ssp, MGMT_SETTING_SIZE },
7219 { set_hs, MGMT_SETTING_SIZE },
7220 { set_le, MGMT_SETTING_SIZE },
7221 { set_dev_class, MGMT_SET_DEV_CLASS_SIZE },
7222 { set_local_name, MGMT_SET_LOCAL_NAME_SIZE },
7223 { add_uuid, MGMT_ADD_UUID_SIZE },
7224 { remove_uuid, MGMT_REMOVE_UUID_SIZE },
7225 { load_link_keys, MGMT_LOAD_LINK_KEYS_SIZE,
7226 HCI_MGMT_VAR_LEN },
7227 { load_long_term_keys, MGMT_LOAD_LONG_TERM_KEYS_SIZE,
7228 HCI_MGMT_VAR_LEN },
7229 { disconnect, MGMT_DISCONNECT_SIZE },
7230 { get_connections, MGMT_GET_CONNECTIONS_SIZE },
7231 { pin_code_reply, MGMT_PIN_CODE_REPLY_SIZE },
7232 { pin_code_neg_reply, MGMT_PIN_CODE_NEG_REPLY_SIZE },
7233 { set_io_capability, MGMT_SET_IO_CAPABILITY_SIZE },
7234 { pair_device, MGMT_PAIR_DEVICE_SIZE },
7235 { cancel_pair_device, MGMT_CANCEL_PAIR_DEVICE_SIZE },
7236 { unpair_device, MGMT_UNPAIR_DEVICE_SIZE },
7237 { user_confirm_reply, MGMT_USER_CONFIRM_REPLY_SIZE },
7238 { user_confirm_neg_reply, MGMT_USER_CONFIRM_NEG_REPLY_SIZE },
7239 { user_passkey_reply, MGMT_USER_PASSKEY_REPLY_SIZE },
7240 { user_passkey_neg_reply, MGMT_USER_PASSKEY_NEG_REPLY_SIZE },
7241 { read_local_oob_data, MGMT_READ_LOCAL_OOB_DATA_SIZE },
7242 { add_remote_oob_data, MGMT_ADD_REMOTE_OOB_DATA_SIZE,
7243 HCI_MGMT_VAR_LEN },
7244 { remove_remote_oob_data, MGMT_REMOVE_REMOTE_OOB_DATA_SIZE },
7245 { start_discovery, MGMT_START_DISCOVERY_SIZE },
7246 { stop_discovery, MGMT_STOP_DISCOVERY_SIZE },
7247 { confirm_name, MGMT_CONFIRM_NAME_SIZE },
7248 { block_device, MGMT_BLOCK_DEVICE_SIZE },
7249 { unblock_device, MGMT_UNBLOCK_DEVICE_SIZE },
7250 { set_device_id, MGMT_SET_DEVICE_ID_SIZE },
7251 { set_advertising, MGMT_SETTING_SIZE },
7252 { set_bredr, MGMT_SETTING_SIZE },
7253 { set_static_address, MGMT_SET_STATIC_ADDRESS_SIZE },
7254 { set_scan_params, MGMT_SET_SCAN_PARAMS_SIZE },
7255 { set_secure_conn, MGMT_SETTING_SIZE },
7256 { set_debug_keys, MGMT_SETTING_SIZE },
7257 { set_privacy, MGMT_SET_PRIVACY_SIZE },
7258 { load_irks, MGMT_LOAD_IRKS_SIZE,
7259 HCI_MGMT_VAR_LEN },
7260 { get_conn_info, MGMT_GET_CONN_INFO_SIZE },
7261 { get_clock_info, MGMT_GET_CLOCK_INFO_SIZE },
7262 { add_device, MGMT_ADD_DEVICE_SIZE },
7263 { remove_device, MGMT_REMOVE_DEVICE_SIZE },
7264 { load_conn_param, MGMT_LOAD_CONN_PARAM_SIZE,
7265 HCI_MGMT_VAR_LEN },
7266 { read_unconf_index_list, MGMT_READ_UNCONF_INDEX_LIST_SIZE,
7267 HCI_MGMT_NO_HDEV |
7268 HCI_MGMT_UNTRUSTED },
7269 { read_config_info, MGMT_READ_CONFIG_INFO_SIZE,
7270 HCI_MGMT_UNCONFIGURED |
7271 HCI_MGMT_UNTRUSTED },
7272 { set_external_config, MGMT_SET_EXTERNAL_CONFIG_SIZE,
7273 HCI_MGMT_UNCONFIGURED },
7274 { set_public_address, MGMT_SET_PUBLIC_ADDRESS_SIZE,
7275 HCI_MGMT_UNCONFIGURED },
7276 { start_service_discovery, MGMT_START_SERVICE_DISCOVERY_SIZE,
7277 HCI_MGMT_VAR_LEN },
7278 { read_local_oob_ext_data, MGMT_READ_LOCAL_OOB_EXT_DATA_SIZE },
7279 { read_ext_index_list, MGMT_READ_EXT_INDEX_LIST_SIZE,
7280 HCI_MGMT_NO_HDEV |
7281 HCI_MGMT_UNTRUSTED },
7282 { read_adv_features, MGMT_READ_ADV_FEATURES_SIZE },
7283 { add_advertising, MGMT_ADD_ADVERTISING_SIZE,
7284 HCI_MGMT_VAR_LEN },
7285 { remove_advertising, MGMT_REMOVE_ADVERTISING_SIZE },
7286 { get_adv_size_info, MGMT_GET_ADV_SIZE_INFO_SIZE },
7287 { start_limited_discovery, MGMT_START_DISCOVERY_SIZE },
7288 { read_ext_controller_info,MGMT_READ_EXT_INFO_SIZE,
7289 HCI_MGMT_UNTRUSTED },
7290 { set_appearance, MGMT_SET_APPEARANCE_SIZE },
7291 { get_phy_configuration, MGMT_GET_PHY_CONFIGURATION_SIZE },
7292 { set_phy_configuration, MGMT_SET_PHY_CONFIGURATION_SIZE },
7293 { set_blocked_keys, MGMT_OP_SET_BLOCKED_KEYS_SIZE,
7294 HCI_MGMT_VAR_LEN },
7295 { set_wideband_speech, MGMT_SETTING_SIZE },
7296 { read_security_info, MGMT_READ_SECURITY_INFO_SIZE,
7297 HCI_MGMT_UNTRUSTED },
7298 { read_exp_features_info, MGMT_READ_EXP_FEATURES_INFO_SIZE,
7299 HCI_MGMT_UNTRUSTED |
7300 HCI_MGMT_HDEV_OPTIONAL },
7301 { set_exp_feature, MGMT_SET_EXP_FEATURE_SIZE,
7302 HCI_MGMT_VAR_LEN |
7303 HCI_MGMT_HDEV_OPTIONAL },
7304 { read_def_system_config, MGMT_READ_DEF_SYSTEM_CONFIG_SIZE,
7305 HCI_MGMT_UNTRUSTED },
> 7306 { set_def_system_config, MGMT_SET_DEF_SYSTEM_CONFIG,
7307 HCI_MGMT_VAR_LEN },
7308 };
7309
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH v6 6/6] drm/tegra: output: rgb: Wrap directly-connected panel into DRM bridge
by kernel test robot
Hi Dmitry,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on next-20200612]
[cannot apply to tegra/for-next robh/for-next v5.7]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Dmitry-Osipenko/Support-DRM-brid...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git abfbb29297c27e3f101f348dc9e467b0fe70f919
config: arm64-randconfig-r026-20200612 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3b43f006294971b8049d4807110032169780e5b8)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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 >>, old ones prefixed by <<):
>> drivers/gpu/drm/tegra/rgb.c:100:48: warning: unused variable 'tegra_rgb_connector_helper_funcs' [-Wunused-const-variable]
static const struct drm_connector_helper_funcs tegra_rgb_connector_helper_funcs = {
^
1 warning generated.
vim +/tegra_rgb_connector_helper_funcs +100 drivers/gpu/drm/tegra/rgb.c
3b0e58554873d1 Thierry Reding 2014-12-16 99
3b0e58554873d1 Thierry Reding 2014-12-16 @100 static const struct drm_connector_helper_funcs tegra_rgb_connector_helper_funcs = {
3b0e58554873d1 Thierry Reding 2014-12-16 101 .get_modes = tegra_output_connector_get_modes,
3b0e58554873d1 Thierry Reding 2014-12-16 102 .mode_valid = tegra_rgb_connector_mode_valid,
3b0e58554873d1 Thierry Reding 2014-12-16 103 };
3b0e58554873d1 Thierry Reding 2014-12-16 104
:::::: The code at line 100 was first introduced by commit
:::::: 3b0e58554873d1034beef737f15c7aa46492ff98 drm/tegra: rgb: Demidlayer
:::::: TO: Thierry Reding <treding(a)nvidia.com>
:::::: CC: Thierry Reding <treding(a)nvidia.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[RFC PATCH] l3mdev: l3mdev_lock can be static
by kernel test robot
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
l3mdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/l3mdev/l3mdev.c b/net/l3mdev/l3mdev.c
index 6cc1fe7eb0399..c16b7146cfaf7 100644
--- a/net/l3mdev/l3mdev.c
+++ b/net/l3mdev/l3mdev.c
@@ -9,7 +9,7 @@
#include <net/fib_rules.h>
#include <net/l3mdev.h>
-DEFINE_SPINLOCK(l3mdev_lock);
+static DEFINE_SPINLOCK(l3mdev_lock);
typedef int (*lookup_by_table_id_t)(struct net *net, u32 table_d);
2 years, 3 months
Re: [PATCH 6/8] drm/vmwgfx: Use __drm_atomic_helper_crtc_reset
by kernel test robot
Hi Daniel,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master v5.7 next-20200612]
[cannot apply to drm/drm-next]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Daniel-Vetter/drm-atomic-helper-...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3b43f006294971b8049d4807110032169780e5b8)
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
# 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 errors (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:632:40: error: use of undeclared identifier 'state'
__drm_atomic_helper_crtc_reset(crtc, &state->base);
^
1 error generated.
vim +/state +632 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
604
605
606 /**
607 * vmw_du_crtc_reset - creates a blank vmw crtc state
608 * @crtc: DRM crtc
609 *
610 * Resets the atomic state for @crtc by freeing the state pointer (which
611 * might be NULL, e.g. at driver load time) and allocating a new empty state
612 * object.
613 */
614 void vmw_du_crtc_reset(struct drm_crtc *crtc)
615 {
616 struct vmw_crtc_state *vcs;
617
618
619 if (crtc->state) {
620 __drm_atomic_helper_crtc_destroy_state(crtc->state);
621
622 kfree(vmw_crtc_state_to_vcs(crtc->state));
623 }
624
625 vcs = kzalloc(sizeof(*vcs), GFP_KERNEL);
626
627 if (!vcs) {
628 DRM_ERROR("Cannot allocate vmw_crtc_state\n");
629 return;
630 }
631
> 632 __drm_atomic_helper_crtc_reset(crtc, &state->base);
633 }
634
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH] vimc: Add colors' order over test image
by kernel test robot
Hi Kaaira,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on next-20200612]
[cannot apply to v5.7]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Kaaira-Gupta/vimc-Add-colors-ord...
base: git://linuxtv.org/media_tree.git master
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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 >>, old ones prefixed by <<):
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c: In function 'tpg_g_color_order':
>> drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2027:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
2027 | return;
| ^~~~~~
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2009:13: note: declared here
2009 | const char *tpg_g_color_order(const struct tpg_data *tpg)
| ^~~~~~~~~~~~~~~~~
vim +/return +2027 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
2008
2009 const char *tpg_g_color_order(const struct tpg_data *tpg)
2010 {
2011 switch (tpg->pattern) {
2012 case (TPG_PAT_75_COLORBAR || TPG_PAT_100_COLORBAR || TPG_PAT_CSC_COLORBAR):
2013 return "Left to right: white, yellow, cyan, green, magenta, red, blue, black";
2014 case TPG_PAT_100_HCOLORBAR:
2015 return "Top to bottom: white, yellow, cyan, green, magenta, red, blue, black";
2016 case TPG_PAT_BLACK:
2017 return "Black";
2018 case TPG_PAT_WHITE:
2019 return "White";
2020 case TPG_PAT_RED:
2021 return "Red";
2022 case TPG_PAT_GREEN:
2023 return "Green";
2024 case TPG_PAT_BLUE:
2025 return "Blue";
2026 default:
> 2027 return;
2028 }
2029 }
2030
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[jirislaby:devel 42/69] drivers/tty/vt/vt_ioctl.c:611:40: error: too many arguments to function call, expected 3, have 4
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: e8202f0b26daec745be5a104074245199e185c42
commit: d6f067c027ac15345fd4f651dcd2e98967d3bd0b [42/69] vt_ioctl: move perm checks level up
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3b43f006294971b8049d4807110032169780e5b8)
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 checkout d6f067c027ac15345fd4f651dcd2e98967d3bd0b
# 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 errors (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/tty/vt/vt_ioctl.c:611:40: error: too many arguments to function call, expected 3, have 4
return do_fontx_ioctl(cmd, up, perm, &op);
~~~~~~~~~~~~~~ ^~~
drivers/tty/vt/vt_ioctl.c:488:19: note: 'do_fontx_ioctl' declared here
static inline int do_fontx_ioctl(int cmd,
^
1 error generated.
vim +611 drivers/tty/vt/vt_ioctl.c
1551037420fe8ab Jiri Slaby 2020-06-05 570
584ef9665aeb61a Jiri Slaby 2020-06-05 571 static int vt_io_ioctl(struct vc_data *vc, unsigned int cmd, void __user *up,
584ef9665aeb61a Jiri Slaby 2020-06-05 572 bool perm)
584ef9665aeb61a Jiri Slaby 2020-06-05 573 {
584ef9665aeb61a Jiri Slaby 2020-06-05 574 struct console_font_op op; /* used in multiple places here */
584ef9665aeb61a Jiri Slaby 2020-06-05 575
584ef9665aeb61a Jiri Slaby 2020-06-05 576 switch (cmd) {
584ef9665aeb61a Jiri Slaby 2020-06-05 577 case PIO_FONT:
584ef9665aeb61a Jiri Slaby 2020-06-05 578 if (!perm)
584ef9665aeb61a Jiri Slaby 2020-06-05 579 return -EPERM;
584ef9665aeb61a Jiri Slaby 2020-06-05 580 op.op = KD_FONT_OP_SET;
584ef9665aeb61a Jiri Slaby 2020-06-05 581 op.flags = KD_FONT_FLAG_OLD | KD_FONT_FLAG_DONT_RECALC; /* Compatibility */
584ef9665aeb61a Jiri Slaby 2020-06-05 582 op.width = 8;
584ef9665aeb61a Jiri Slaby 2020-06-05 583 op.height = 0;
584ef9665aeb61a Jiri Slaby 2020-06-05 584 op.charcount = 256;
584ef9665aeb61a Jiri Slaby 2020-06-05 585 op.data = up;
584ef9665aeb61a Jiri Slaby 2020-06-05 586 return con_font_op(vc_cons[fg_console].d, &op);
584ef9665aeb61a Jiri Slaby 2020-06-05 587
584ef9665aeb61a Jiri Slaby 2020-06-05 588 case GIO_FONT:
584ef9665aeb61a Jiri Slaby 2020-06-05 589 op.op = KD_FONT_OP_GET;
584ef9665aeb61a Jiri Slaby 2020-06-05 590 op.flags = KD_FONT_FLAG_OLD;
584ef9665aeb61a Jiri Slaby 2020-06-05 591 op.width = 8;
584ef9665aeb61a Jiri Slaby 2020-06-05 592 op.height = 32;
584ef9665aeb61a Jiri Slaby 2020-06-05 593 op.charcount = 256;
584ef9665aeb61a Jiri Slaby 2020-06-05 594 op.data = up;
584ef9665aeb61a Jiri Slaby 2020-06-05 595 return con_font_op(vc_cons[fg_console].d, &op);
584ef9665aeb61a Jiri Slaby 2020-06-05 596
584ef9665aeb61a Jiri Slaby 2020-06-05 597 case PIO_CMAP:
584ef9665aeb61a Jiri Slaby 2020-06-05 598 if (!perm)
584ef9665aeb61a Jiri Slaby 2020-06-05 599 return -EPERM;
584ef9665aeb61a Jiri Slaby 2020-06-05 600 return con_set_cmap(up);
584ef9665aeb61a Jiri Slaby 2020-06-05 601
584ef9665aeb61a Jiri Slaby 2020-06-05 602 case GIO_CMAP:
584ef9665aeb61a Jiri Slaby 2020-06-05 603 return con_get_cmap(up);
584ef9665aeb61a Jiri Slaby 2020-06-05 604
584ef9665aeb61a Jiri Slaby 2020-06-05 605 case PIO_FONTX:
d6f067c027ac153 Jiri Slaby 2020-06-12 606 if (!perm)
d6f067c027ac153 Jiri Slaby 2020-06-12 607 return -EPERM;
d6f067c027ac153 Jiri Slaby 2020-06-12 608
d6f067c027ac153 Jiri Slaby 2020-06-12 609 fallthrough;
584ef9665aeb61a Jiri Slaby 2020-06-05 610 case GIO_FONTX:
584ef9665aeb61a Jiri Slaby 2020-06-05 @611 return do_fontx_ioctl(cmd, up, perm, &op);
584ef9665aeb61a Jiri Slaby 2020-06-05 612
584ef9665aeb61a Jiri Slaby 2020-06-05 613 case PIO_FONTRESET:
584ef9665aeb61a Jiri Slaby 2020-06-05 614 if (!perm)
584ef9665aeb61a Jiri Slaby 2020-06-05 615 return -EPERM;
584ef9665aeb61a Jiri Slaby 2020-06-05 616
d128a19c2f77cb0 Jiri Slaby 2020-06-12 617 return vt_io_fontreset(&op);
584ef9665aeb61a Jiri Slaby 2020-06-05 618
584ef9665aeb61a Jiri Slaby 2020-06-05 619 case PIO_SCRNMAP:
584ef9665aeb61a Jiri Slaby 2020-06-05 620 if (!perm)
584ef9665aeb61a Jiri Slaby 2020-06-05 621 return -EPERM;
584ef9665aeb61a Jiri Slaby 2020-06-05 622 return con_set_trans_old(up);
584ef9665aeb61a Jiri Slaby 2020-06-05 623
584ef9665aeb61a Jiri Slaby 2020-06-05 624 case GIO_SCRNMAP:
584ef9665aeb61a Jiri Slaby 2020-06-05 625 return con_get_trans_old(up);
584ef9665aeb61a Jiri Slaby 2020-06-05 626
584ef9665aeb61a Jiri Slaby 2020-06-05 627 case PIO_UNISCRNMAP:
584ef9665aeb61a Jiri Slaby 2020-06-05 628 if (!perm)
584ef9665aeb61a Jiri Slaby 2020-06-05 629 return -EPERM;
584ef9665aeb61a Jiri Slaby 2020-06-05 630 return con_set_trans_new(up);
584ef9665aeb61a Jiri Slaby 2020-06-05 631
584ef9665aeb61a Jiri Slaby 2020-06-05 632 case GIO_UNISCRNMAP:
584ef9665aeb61a Jiri Slaby 2020-06-05 633 return con_get_trans_new(up);
584ef9665aeb61a Jiri Slaby 2020-06-05 634
584ef9665aeb61a Jiri Slaby 2020-06-05 635 case PIO_UNIMAPCLR:
584ef9665aeb61a Jiri Slaby 2020-06-05 636 if (!perm)
584ef9665aeb61a Jiri Slaby 2020-06-05 637 return -EPERM;
584ef9665aeb61a Jiri Slaby 2020-06-05 638 con_clear_unimap(vc);
584ef9665aeb61a Jiri Slaby 2020-06-05 639 break;
584ef9665aeb61a Jiri Slaby 2020-06-05 640
584ef9665aeb61a Jiri Slaby 2020-06-05 641 case PIO_UNIMAP:
584ef9665aeb61a Jiri Slaby 2020-06-05 642 case GIO_UNIMAP:
d6f067c027ac153 Jiri Slaby 2020-06-12 643 if (!perm)
d6f067c027ac153 Jiri Slaby 2020-06-12 644 return -EPERM;
d6f067c027ac153 Jiri Slaby 2020-06-12 645
d6f067c027ac153 Jiri Slaby 2020-06-12 646 return do_unimap_ioctl(cmd, up, vc);
584ef9665aeb61a Jiri Slaby 2020-06-05 647
584ef9665aeb61a Jiri Slaby 2020-06-05 648 default:
584ef9665aeb61a Jiri Slaby 2020-06-05 649 return -ENOIOCTLCMD;
584ef9665aeb61a Jiri Slaby 2020-06-05 650 }
584ef9665aeb61a Jiri Slaby 2020-06-05 651
584ef9665aeb61a Jiri Slaby 2020-06-05 652 return 0;
584ef9665aeb61a Jiri Slaby 2020-06-05 653 }
584ef9665aeb61a Jiri Slaby 2020-06-05 654
:::::: The code at line 611 was first introduced by commit
:::::: 584ef9665aeb61a0177e9741bec855a8d49967e8 vt_ioctl: move io ioctls to a separate function
:::::: TO: Jiri Slaby <jslaby(a)suse.cz>
:::::: CC: Jiri Slaby <jslaby(a)suse.cz>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months