[Intel-gfx] [PATCH] drm/i915/cnp: add CNP gmbus support
kbuild test robot
lkp at intel.com
Thu Jun 1 00:17:20 UTC 2017
Hi Rodrigo,
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v4.12-rc3 next-20170531]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Rodrigo-Vivi/drm-i915-cnp-add-CNP-gmbus-support/20170601-070244
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-x014-201722 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All error/warnings (new ones prefixed by >>):
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/mod_devicetable.h:11,
from include/linux/i2c.h:29,
from drivers/gpu//drm/i915/intel_hdmi.c:29:
drivers/gpu//drm/i915/intel_hdmi.c: In function 'intel_hdmi_ddc_pin':
>> drivers/gpu//drm/i915/intel_hdmi.c:1805:31: error: implicit declaration of function 'HAS_PCH_CNP' [-Werror=implicit-function-declaration]
if (IS_GEN9_LP(dev_priv) || HAS_PCH_CNP(dev_priv))
^
include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> drivers/gpu//drm/i915/intel_hdmi.c:1805:3: note: in expansion of macro 'if'
if (IS_GEN9_LP(dev_priv) || HAS_PCH_CNP(dev_priv))
^~
Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
Cyclomatic Complexity 5 include/linux/slab.h:kmalloc
Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
Cyclomatic Complexity 1 include/drm/drm_modeset_helper_vtables.h:drm_connector_helper_add
Cyclomatic Complexity 1 drivers/gpu//drm/i915/i915_drv.h:to_i915
Cyclomatic Complexity 1 drivers/gpu//drm/i915/i915_drv.h:intel_info
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_drv.h:intel_get_crtc_for_pipe
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_drv.h:intel_attached_encoder
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_drv.h:hdmi_to_dig_port
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_to_dev
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:hsw_infoframe_enabled
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:hdmi_sink_is_deep_color
Cyclomatic Complexity 12 drivers/gpu//drm/i915/intel_hdmi.c:gcp_default_phase_possible
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:vlv_enable_hdmi
Cyclomatic Complexity 23 drivers/gpu//drm/i915/intel_hdmi.c:hdmi_12bpc_possible
Cyclomatic Complexity 8 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_source_max_tmds_clock
Cyclomatic Complexity 15 drivers/gpu//drm/i915/intel_hdmi.c:hdmi_port_clock_limit
Cyclomatic Complexity 16 drivers/gpu//drm/i915/intel_hdmi.c:hdmi_port_clock_valid
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_hdmi.c:cpt_infoframe_enabled
Cyclomatic Complexity 9 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_set_gcp_infoframe
Cyclomatic Complexity 2 drivers/gpu//drm/i915/intel_hdmi.c:assert_hdmi_port_disabled
Cyclomatic Complexity 5 drivers/gpu//drm/i915/intel_hdmi.c:g4x_infoframe_index
Cyclomatic Complexity 5 drivers/gpu//drm/i915/intel_hdmi.c:g4x_infoframe_enable
Cyclomatic Complexity 6 drivers/gpu//drm/i915/intel_hdmi.c:cpt_write_infoframe
Cyclomatic Complexity 4 drivers/gpu//drm/i915/intel_drv.h:enc_to_dig_port
Cyclomatic Complexity 5 drivers/gpu//drm/i915/intel_hdmi.c:ibx_infoframe_enabled
Cyclomatic Complexity 5 drivers/gpu//drm/i915/intel_hdmi.c:g4x_infoframe_enabled
Cyclomatic Complexity 5 drivers/gpu//drm/i915/intel_hdmi.c:vlv_infoframe_enabled
Cyclomatic Complexity 4 drivers/gpu//drm/i915/intel_hdmi.c:ibx_write_infoframe
Cyclomatic Complexity 5 drivers/gpu//drm/i915/intel_hdmi.c:hsw_dip_data_reg
Cyclomatic Complexity 5 drivers/gpu//drm/i915/intel_hdmi.c:hsw_infoframe_enable
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_hdmi.c:hsw_write_infoframe
Cyclomatic Complexity 4 drivers/gpu//drm/i915/intel_hdmi.c:g4x_write_infoframe
Cyclomatic Complexity 4 drivers/gpu//drm/i915/intel_hdmi.c:vlv_write_infoframe
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_get_modes
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_destroy
Cyclomatic Complexity 18 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_ddc_pin
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_add_properties
Cyclomatic Complexity 2 drivers/gpu//drm/i915/intel_hdmi.c:intel_enable_hdmi_audio
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:vlv_hdmi_post_disable
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:chv_hdmi_post_pll_disable
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:chv_hdmi_post_disable
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_hdmi.c:pch_disable_hdmi
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_drv.h:intel_wait_for_vblank
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_drv.h:intel_wait_for_vblank_if_active
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:enc_to_intel_hdmi
Cyclomatic Complexity 44 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_compute_config
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_hdmi.c:intel_write_infoframe
Cyclomatic Complexity 4 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_set_avi_infoframe
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_set_spd_infoframe
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_set_hdmi_infoframe
Cyclomatic Complexity 6 drivers/gpu//drm/i915/intel_hdmi.c:cpt_set_infoframes
Cyclomatic Complexity 9 drivers/gpu//drm/i915/intel_hdmi.c:ibx_set_infoframes
Cyclomatic Complexity 11 drivers/gpu//drm/i915/intel_hdmi.c:g4x_set_infoframes
Cyclomatic Complexity 4 drivers/gpu//drm/i915/intel_hdmi.c:hsw_set_infoframes
Cyclomatic Complexity 9 drivers/gpu//drm/i915/intel_hdmi.c:vlv_set_infoframes
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:intel_attached_hdmi
Cyclomatic Complexity 23 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_mode_valid
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_unset_edid
Cyclomatic Complexity 8 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_dp_dual_mode_detect
Cyclomatic Complexity 9 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_set_edid
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_force
Cyclomatic Complexity 2 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_detect
Cyclomatic Complexity 5 drivers/gpu//drm/i915/intel_hdmi.c:g4x_enable_hdmi
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:vlv_hdmi_pre_enable
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:chv_hdmi_pre_enable
Cyclomatic Complexity 13 drivers/gpu//drm/i915/intel_hdmi.c:ibx_enable_hdmi
Cyclomatic Complexity 9 drivers/gpu//drm/i915/intel_hdmi.c:cpt_enable_hdmi
Cyclomatic Complexity 22 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_get_config
Cyclomatic Complexity 8 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_get_hw_state
Cyclomatic Complexity 4 drivers/gpu//drm/i915/intel_hdmi.c:intel_dp_dual_mode_set_tmds_output
Cyclomatic Complexity 21 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_prepare
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_pre_enable
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:vlv_hdmi_pre_pll_enable
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:chv_hdmi_pre_pll_enable
Cyclomatic Complexity 9 drivers/gpu//drm/i915/intel_hdmi.c:intel_disable_hdmi
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_hdmi.c:g4x_disable_hdmi
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_hdmi.c:pch_post_disable_hdmi
Cyclomatic Complexity 7 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_handle_sink_scrambling
Cyclomatic Complexity 20 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_init_connector
Cyclomatic Complexity 21 drivers/gpu//drm/i915/intel_hdmi.c:intel_hdmi_init
cc1: all warnings being treated as errors
--
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/mod_devicetable.h:11,
from include/linux/i2c.h:29,
from drivers/gpu//drm/i915/intel_i2c.c:29:
drivers/gpu//drm/i915/intel_i2c.c: In function 'get_gmbus_pin':
>> drivers/gpu//drm/i915/intel_i2c.c:82:6: error: implicit declaration of function 'HAS_PCH_CNP' [-Werror=implicit-function-declaration]
if (HAS_PCH_CNP(dev_priv))
^
include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> drivers/gpu//drm/i915/intel_i2c.c:82:2: note: in expansion of macro 'if'
if (HAS_PCH_CNP(dev_priv))
^~
Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current
Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:arch_local_save_flags
Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_irqs_disabled_flags
Cyclomatic Complexity 1 arch/x86/include/asm/processor.h:rep_nop
Cyclomatic Complexity 1 arch/x86/include/asm/processor.h:cpu_relax
Cyclomatic Complexity 1 arch/x86/include/asm/preempt.h:preempt_count
Cyclomatic Complexity 7 arch/x86/include/asm/preempt.h:__preempt_count_add
Cyclomatic Complexity 1 arch/x86/include/asm/preempt.h:__preempt_count_dec_and_test
Cyclomatic Complexity 1 include/linux/jiffies.h:_usecs_to_jiffies
Cyclomatic Complexity 4 include/linux/jiffies.h:usecs_to_jiffies
Cyclomatic Complexity 1 arch/x86/include/asm/io.h:readl
Cyclomatic Complexity 1 arch/x86/include/asm/io.h:writel
Cyclomatic Complexity 4 include/drm/drmP.h:drm_can_sleep
Cyclomatic Complexity 1 drivers/gpu//drm/i915/i915_reg.h:i915_mmio_reg_offset
Cyclomatic Complexity 1 drivers/gpu//drm/i915/i915_reg.h:i915_mmio_reg_equal
Cyclomatic Complexity 1 drivers/gpu//drm/i915/i915_reg.h:i915_mmio_reg_valid
Cyclomatic Complexity 1 drivers/gpu//drm/i915/i915_drv.h:intel_info
Cyclomatic Complexity 1 drivers/gpu//drm/i915/i915_drv.h:__raw_i915_read32
Cyclomatic Complexity 1 drivers/gpu//drm/i915/i915_drv.h:__raw_i915_write32
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_i2c.c:to_intel_gmbus
Cyclomatic Complexity 5 drivers/gpu//drm/i915/intel_i2c.c:gmbus_is_index_read
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_i2c.c:gmbus_func
Cyclomatic Complexity 10 drivers/gpu//drm/i915/intel_i2c.c:get_gmbus_pin
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_i2c.c:intel_gpio_setup
Cyclomatic Complexity 5 drivers/gpu//drm/i915/intel_i2c.c:intel_i2c_quirk_set
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_i2c.c:get_reserved
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_i2c.c:get_clock
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_i2c.c:get_data
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_i2c.c:set_clock
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_i2c.c:set_data
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_i2c.c:intel_gpio_post_xfer
Cyclomatic Complexity 1 include/linux/sched/clock.h:local_clock
Cyclomatic Complexity 21 drivers/gpu//drm/i915/intel_i2c.c:gmbus_wait
Cyclomatic Complexity 6 drivers/gpu//drm/i915/intel_i2c.c:gmbus_xfer_read_chunk
Cyclomatic Complexity 4 drivers/gpu//drm/i915/intel_i2c.c:gmbus_xfer_read
Cyclomatic Complexity 9 drivers/gpu//drm/i915/intel_i2c.c:gmbus_xfer_index_read
Cyclomatic Complexity 7 drivers/gpu//drm/i915/intel_i2c.c:gmbus_xfer_write_chunk
Cyclomatic Complexity 4 drivers/gpu//drm/i915/intel_i2c.c:gmbus_xfer_write
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_uncore.h:intel_wait_for_register_fw
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_i2c.c:gmbus_wait_idle
Cyclomatic Complexity 18 drivers/gpu//drm/i915/intel_i2c.c:do_gmbus_xfer
Cyclomatic Complexity 7 drivers/gpu//drm/i915/intel_i2c.c:gmbus_xfer
Cyclomatic Complexity 12 drivers/gpu//drm/i915/intel_i2c.c:intel_gmbus_is_valid_pin
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_i2c.c:intel_i2c_reset
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_i2c.c:intel_gpio_pre_xfer
Cyclomatic Complexity 15 drivers/gpu//drm/i915/intel_i2c.c:intel_setup_gmbus
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_i2c.c:intel_gmbus_get_adapter
Cyclomatic Complexity 1 drivers/gpu//drm/i915/intel_i2c.c:intel_gmbus_set_speed
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_i2c.c:intel_gmbus_force_bit
Cyclomatic Complexity 3 drivers/gpu//drm/i915/intel_i2c.c:intel_teardown_gmbus
cc1: all warnings being treated as errors
vim +/HAS_PCH_CNP +1805 drivers/gpu//drm/i915/intel_hdmi.c
1799 info->alternate_ddc_pin, port_name(port));
1800 return info->alternate_ddc_pin;
1801 }
1802
1803 switch (port) {
1804 case PORT_B:
> 1805 if (IS_GEN9_LP(dev_priv) || HAS_PCH_CNP(dev_priv))
1806 ddc_pin = GMBUS_PIN_1_BXT;
1807 else
1808 ddc_pin = GMBUS_PIN_DPB;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 28686 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20170601/929ccd0f/attachment-0001.gz>
More information about the Intel-gfx
mailing list