[Intel-gfx] [PATCH] drm/i915/execlists: Leave tell-tales as to why pending[] is bad

kbuild test robot lkp at intel.com
Wed Oct 9 17:23:43 UTC 2019


Hi Chris,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[cannot apply to v5.4-rc2 next-20191009]
[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/Chris-Wilson/drm-i915-execlists-Leave-tell-tales-as-to-why-pending-is-bad/20191009-212112
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-a001-201940 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/i915/i915_active.h:13:0,
                    from drivers/gpu/drm/i915/display/intel_frontbuffer.h:30,
                    from drivers/gpu/drm/i915/i915_drv.h:70,
                    from drivers/gpu/drm/i915/display/intel_display_types.h:46,
                    from drivers/gpu/drm/i915/i915_drv.c:54:
   drivers/gpu/drm/i915/i915_request.h: In function 'to_request':
>> drivers/gpu/drm/i915/i915_request.h:261:2: error: implicit declaration of function 'GEM_TRACE_ERR' [-Werror=implicit-function-declaration]
     GEM_BUG_ON(fence && !dma_fence_is_i915(fence));
     ^
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_read
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls
   Cyclomatic Complexity 1 arch/x86/include/asm/arch_hweight.h:__arch_hweight32
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
   Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR
   Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_read
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_add
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_sub
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_read
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_add
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_sub
   Cyclomatic Complexity 2 arch/x86/include/asm/jump_label.h:arch_static_branch
   Cyclomatic Complexity 1 include/linux/jump_label.h:static_key_false
   Cyclomatic Complexity 3 include/linux/string.h:memset
   Cyclomatic Complexity 4 include/linux/string.h:memcpy
   Cyclomatic Complexity 4 include/linux/string.h:memcmp
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpu_max_bits_warn
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_check
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_sub
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_lock_sched_notrace
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_unlock_sched_notrace
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock_irq
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irq
   Cyclomatic Complexity 3 include/linux/ktime.h:ktime_compare
   Cyclomatic Complexity 1 include/linux/ktime.h:ktime_after
   Cyclomatic Complexity 1 arch/x86/include/asm/io.h:readl
   Cyclomatic Complexity 1 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 3 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 1 include/linux/device.h:dev_get_drvdata
   Cyclomatic Complexity 1 include/linux/device.h:dev_set_drvdata
   Cyclomatic Complexity 1 include/linux/pci.h:pci_disable_msi
   Cyclomatic Complexity 1 include/linux/pci.h:pci_enable_msi
   Cyclomatic Complexity 1 arch/x86/include/asm/pci.h:pci_domain_nr
   Cyclomatic Complexity 1 include/linux/pci.h:pci_get_drvdata
   Cyclomatic Complexity 1 include/linux/pci.h:pci_set_drvdata
   Cyclomatic Complexity 1 include/linux/vgaarb.h:vga_remove_vgacon
   Cyclomatic Complexity 1 include/linux/vgaarb.h:vga_client_register
   Cyclomatic Complexity 2 include/linux/fb.h:alloc_apertures
   Cyclomatic Complexity 1 include/linux/vga_switcheroo.h:vga_switcheroo_unregister_client
   Cyclomatic Complexity 1 include/linux/vga_switcheroo.h:vga_switcheroo_register_client
   Cyclomatic Complexity 1 include/linux/vga_switcheroo.h:vga_switcheroo_process_delayed_switch
   Cyclomatic Complexity 1 include/drm/drm_print.h:drm_debug_printer
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_reg.h:i915_mmio_reg_offset
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_utils.h:yesno
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_utils.h:onoff
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_runtime_pm.h:disable_rpm_wakeref_asserts
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_runtime_pm.h:enable_rpm_wakeref_asserts
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_uncore.h:__raw_uncore_read32
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_uncore.h:intel_uncore_read
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_uncore.h:intel_uncore_read_notrace
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_uncore.h:intel_uncore_write
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_gvt.h:intel_gvt_init
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_gvt.h:intel_gvt_driver_remove
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_gvt.h:intel_gvt_sanitize_options
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:to_i915
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:kdev_to_i915
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:pdev_to_i915
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:__platform_mask_index
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:__platform_mask_bit
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:intel_subplatform
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_drv.h:IS_PLATFORM
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:intel_vgpu_active
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:mkwrite_device_info
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/display/intel_fbdev.h:intel_fbdev_init
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/display/intel_fbdev.h:intel_fbdev_initial_config_async
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/display/intel_fbdev.h:intel_fbdev_unregister
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/display/intel_fbdev.h:intel_fbdev_set_suspend
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/display/intel_fbdev.h:intel_fbdev_restore_mode
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_vgpu.h:intel_vgpu_has_hwsp_emulation
   Cyclomatic Complexity 3 drivers/gpu/drm/i915/i915_drv.c:i915_switcheroo_can_switch
   Cyclomatic Complexity 3 drivers/gpu/drm/i915/i915_drv.c:intel_init_dpio
   Cyclomatic Complexity 3 drivers/gpu/drm/i915/i915_drv.c:vlv_alloc_s0ix_state
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.c:intel_sanitize_options
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_drv.c:intel_dram_type_str
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_drv.c:intel_dimm_num_devices
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.c:skl_get_dimm_size
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_drv.c:skl_get_dimm_ranks
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.c:cnl_get_dimm_size
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_drv.c:cnl_get_dimm_ranks
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_drv.c:skl_is_16gb_dimm
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_drv.c:intel_is_dram_symmetric
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.c:gen9_edram_size_mb
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.c:i915_driver_lastclose
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_drv.c:vlv_save_gunit_s0ix_state
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_drv.c:vlv_restore_gunit_s0ix_state
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.c:i915_gem_reject_pin_ioctl
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_drv.c:vlv_free_s0ix_state
   Cyclomatic Complexity 1 include/linux/err.h:IS_ERR
   Cyclomatic Complexity 3 drivers/gpu/drm/i915/i915_drv.c:i915_driver_create
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.c:i915_driver_postclose
--
   In file included from drivers/gpu/drm/i915/i915_active.h:13:0,
                    from drivers/gpu/drm/i915/display/intel_frontbuffer.h:30,
                    from drivers/gpu/drm/i915/i915_drv.h:70,
                    from drivers/gpu/drm/i915/display/intel_display_types.h:46,
                    from drivers/gpu/drm/i915/i915_irq.c:40:
   drivers/gpu/drm/i915/i915_request.h: In function 'to_request':
>> drivers/gpu/drm/i915/i915_request.h:261:2: error: implicit declaration of function 'GEM_TRACE_ERR' [-Werror=implicit-function-declaration]
     GEM_BUG_ON(fence && !dma_fence_is_i915(fence));
     ^
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_read
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:ffs
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
   Cyclomatic Complexity 3 include/linux/log2.h:is_power_of_2
   Cyclomatic Complexity 2 arch/x86/include/asm/div64.h:div_u64_rem
   Cyclomatic Complexity 1 arch/x86/include/asm/div64.h:mul_u32_u32
   Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
   Cyclomatic Complexity 1 include/linux/math64.h:div_u64
   Cyclomatic Complexity 3 include/linux/string.h:memset
   Cyclomatic Complexity 2 arch/x86/include/asm/jump_label.h:arch_static_branch
   Cyclomatic Complexity 1 include/linux/jump_label.h:static_key_false
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpu_max_bits_warn
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_check
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_read
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_add
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_sub
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_read
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_add
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_sub
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_sub
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock_irq
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irq
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irqrestore
   Cyclomatic Complexity 1 arch/x86/include/asm/io.h:readl
   Cyclomatic Complexity 1 arch/x86/include/asm/io.h:writel
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_lock_sched_notrace
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_unlock_sched_notrace
   Cyclomatic Complexity 1 include/drm/drm_crtc.h:drm_crtc_index
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_reg.h:i915_mmio_reg_offset
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_runtime_pm.h:intel_rpm_raw_wakeref_count
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_runtime_pm.h:intel_rpm_wakelock_count
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_runtime_pm.h:disable_rpm_wakeref_asserts
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_runtime_pm.h:enable_rpm_wakeref_asserts
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_uncore.h:__raw_uncore_read32
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_uncore.h:intel_uncore_read16
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_uncore.h:intel_uncore_read
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_uncore.h:intel_uncore_read16_notrace
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_uncore.h:intel_uncore_read_notrace
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_uncore.h:intel_uncore_write16
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_uncore.h:intel_uncore_write
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:to_i915
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:__platform_mask_index
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:__platform_mask_bit
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_drv.h:IS_PLATFORM
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_drv.h:IS_SUBPLATFORM
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/display/intel_display_types.h:intel_get_crtc_for_pipe
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/gt/intel_gt.h:guc_to_gt
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_irq.c:i915_has_asle
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_irq.c:__intel_get_crtc_scanline_from_timestamp
   Cyclomatic Complexity 5 drivers/gpu/drm/i915/i915_irq.c:gen11_port_hotplug_long_detect
   Cyclomatic Complexity 7 drivers/gpu/drm/i915/i915_irq.c:gen12_port_hotplug_long_detect
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_irq.c:bxt_port_hotplug_long_detect
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_irq.c:icp_ddi_port_hotplug_long_detect
   Cyclomatic Complexity 5 drivers/gpu/drm/i915/i915_irq.c:icp_tc_port_hotplug_long_detect
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_irq.c:tgp_ddi_port_hotplug_long_detect
   Cyclomatic Complexity 7 drivers/gpu/drm/i915/i915_irq.c:tgp_tc_port_hotplug_long_detect
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_irq.c:spt_port_hotplug2_long_detect
   Cyclomatic Complexity 5 drivers/gpu/drm/i915/i915_irq.c:spt_port_hotplug_long_detect
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_irq.c:ilk_port_hotplug_long_detect
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_irq.c:pch_port_hotplug_long_detect
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_irq.c:i9xx_port_hotplug_long_detect
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_irq.c:i9xx_pipestat_irq_reset
   Cyclomatic Complexity 6 drivers/gpu/drm/i915/i915_irq.c:gen8_de_port_aux_mask
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_irq.c:gen8_de_pipe_fault_mask
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_irq.c:gen8_master_intr_disable
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_irq.c:gen8_master_intr_enable
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_irq.c:gen11_master_intr_disable
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_irq.c:gen11_master_intr_enable
   Cyclomatic Complexity 3 drivers/gpu/drm/i915/i915_irq.c:intel_hpd_enabled_irqs
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_irq.c:ibx_hpd_detection_setup
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_irq.c:icp_hpd_detection_setup
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_irq.c:gen11_hpd_detection_setup
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_irq.c:spt_hpd_detection_setup
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_irq.c:ilk_hpd_detection_setup
   Cyclomatic Complexity 3 drivers/gpu/drm/i915/i915_irq.c:i8xx_error_irq_ack
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_irq.c:i9xx_error_irq_ack
   Cyclomatic Complexity 8 drivers/gpu/drm/i915/i915_irq.c:intel_irq_handler
   Cyclomatic Complexity 3 drivers/gpu/drm/i915/i915_irq.c:gen11_gu_misc_irq_ack
   Cyclomatic Complexity 3 drivers/gpu/drm/i915/i915_irq.c:gen3_assert_iir_is_zero
   Cyclomatic Complexity 5 drivers/gpu/drm/i915/i915_irq.c:ibx_irq_postinstall
   Cyclomatic Complexity 3 drivers/gpu/drm/i915/i915_irq.c:gen2_assert_iir_is_zero
   Cyclomatic Complexity 5 drivers/gpu/drm/i915/i915_irq.c:gen6_pm_iir
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/intel_runtime_pm.h:assert_rpm_device_not_suspended
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/intel_runtime_pm.h:__assert_rpm_raw_wakeref_held
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/intel_runtime_pm.h:__assert_rpm_wakelock_held
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/intel_runtime_pm.h:assert_rpm_wakelock_held
   Cyclomatic Complexity 10 drivers/gpu/drm/i915/i915_irq.c:i9xx_hpd_irq_ack
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_irq.c:icp_irq_postinstall
--
   In file included from drivers/gpu/drm/i915/i915_active.h:13:0,
                    from drivers/gpu/drm/i915/display/intel_frontbuffer.h:30,
                    from drivers/gpu/drm/i915/i915_drv.h:70,
                    from drivers/gpu/drm/i915/i915_getparam.c:7:
   drivers/gpu/drm/i915/i915_request.h: In function 'to_request':
>> drivers/gpu/drm/i915/i915_request.h:261:2: error: implicit declaration of function 'GEM_TRACE_ERR' [-Werror=implicit-function-declaration]
     GEM_BUG_ON(fence && !dma_fence_is_i915(fence));
     ^
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:to_i915
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:__platform_mask_index
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:__platform_mask_bit
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_drv.h:IS_PLATFORM
   Cyclomatic Complexity 44 drivers/gpu/drm/i915/i915_getparam.c:i915_getparam_ioctl
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_getparam.c:_GLOBAL__sub_I_65535_0_i915_getparam_ioctl
   cc1: all warnings being treated as errors
--
   In file included from drivers/gpu/drm/i915/i915_active.h:13:0,
                    from drivers/gpu/drm/i915/display/intel_frontbuffer.h:30,
                    from drivers/gpu/drm/i915/i915_drv.h:70,
                    from drivers/gpu/drm/i915/i915_params.c:28:
   drivers/gpu/drm/i915/i915_request.h: In function 'to_request':
>> drivers/gpu/drm/i915/i915_request.h:261:2: error: implicit declaration of function 'GEM_TRACE_ERR' [-Werror=implicit-function-declaration]
     GEM_BUG_ON(fence && !dma_fence_is_i915(fence));
     ^
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_utils.h:yesno
   Cyclomatic Complexity 8 drivers/gpu/drm/i915/i915_params.c:_print_param
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_params.c:dup_param
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_params.c:free_param
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_params.c:i915_params_dump
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_params.c:i915_params_copy
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_params.c:i915_params_free
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_params.c:_GLOBAL__sub_I_65535_0_i915_modparams
   cc1: all warnings being treated as errors
--
   In file included from drivers/gpu/drm/i915/i915_active.h:13:0,
                    from drivers/gpu/drm/i915/display/intel_frontbuffer.h:30,
                    from drivers/gpu/drm/i915/i915_drv.h:70,
                    from drivers/gpu/drm/i915/i915_pci.c:33:
   drivers/gpu/drm/i915/i915_request.h: In function 'to_request':
>> drivers/gpu/drm/i915/i915_request.h:261:2: error: implicit declaration of function 'GEM_TRACE_ERR' [-Werror=implicit-function-declaration]
     GEM_BUG_ON(fence && !dma_fence_is_i915(fence));
     ^
   Cyclomatic Complexity 1 include/linux/console.h:vgacon_text_force
   Cyclomatic Complexity 1 include/linux/device.h:dev_get_drvdata
   Cyclomatic Complexity 1 include/linux/device.h:dev_set_drvdata
   Cyclomatic Complexity 1 include/linux/vga_switcheroo.h:vga_switcheroo_client_probe_defer
   Cyclomatic Complexity 1 include/linux/pci.h:pci_get_drvdata
   Cyclomatic Complexity 1 include/linux/pci.h:pci_set_drvdata
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_pci.c:i915_exit
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_pci.c:i915_pci_remove
   Cyclomatic Complexity 9 drivers/gpu/drm/i915/i915_pci.c:force_probe
   Cyclomatic Complexity 9 drivers/gpu/drm/i915/i915_pci.c:i915_pci_probe
   Cyclomatic Complexity 7 drivers/gpu/drm/i915/i915_pci.c:i915_init
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_pci.c:_GLOBAL__sub_I_65535_0_i915_pci.c
   cc1: all warnings being treated as errors
--
   In file included from drivers/gpu/drm/i915/i915_scatterlist.c:7:0:
   drivers/gpu/drm/i915/i915_scatterlist.h: In function 'i915_sg_page_sizes':
>> drivers/gpu/drm/i915/i915_scatterlist.h:101:3: error: implicit declaration of function 'GEM_TRACE_ERR' [-Werror=implicit-function-declaration]
      GEM_BUG_ON(sg->offset);
      ^
   Cyclomatic Complexity 1 include/linux/scatterlist.h:sg_page
   Cyclomatic Complexity 1 include/linux/scatterlist.h:sg_mark_end
   Cyclomatic Complexity 1 include/linux/scatterlist.h:sg_page_iter_page
   Cyclomatic Complexity 3 drivers/gpu/drm/i915/i915_scatterlist.h:__sgt_iter
   Cyclomatic Complexity 2 include/linux/random.h:__seed
   Cyclomatic Complexity 1 include/linux/random.h:prandom_seed_state
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/selftests/scatterlist.c:one
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/selftests/scatterlist.c:grow
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/selftests/scatterlist.c:shrink
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/selftests/scatterlist.c:page_contiguous
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_scatterlist.h:____sg_next
   Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_scatterlist.h:__sg_next
   Cyclomatic Complexity 1 include/linux/scatterlist.h:sg_assign_page
   Cyclomatic Complexity 1 include/linux/scatterlist.h:sg_set_page
   Cyclomatic Complexity 5 drivers/gpu/drm/i915/selftests/scatterlist.c:alloc_table
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/selftests/scatterlist.c:random_page_size_pages
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/selftests/scatterlist.c:random
   Cyclomatic Complexity 6 drivers/gpu/drm/i915/selftests/scatterlist.c:expect_pfn_sg
   Cyclomatic Complexity 7 drivers/gpu/drm/i915/selftests/scatterlist.c:expect_pfn_sgtiter
   Cyclomatic Complexity 5 drivers/gpu/drm/i915/selftests/scatterlist.c:expect_pfn_sg_page_iter
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/selftests/scatterlist.c:expect_pfn_sgtable
   Cyclomatic Complexity 8 drivers/gpu/drm/i915/selftests/scatterlist.c:igt_sg_alloc
   Cyclomatic Complexity 4 drivers/gpu/drm/i915/i915_scatterlist.c:i915_sg_trim
   Cyclomatic Complexity 10 drivers/gpu/drm/i915/selftests/scatterlist.c:igt_sg_trim
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/selftests/scatterlist.c:scatterlist_mock_selftests
   Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_scatterlist.c:_GLOBAL__sub_I_65535_0_i915_sg_trim
   cc1: all warnings being treated as errors
..

vim +/GEM_TRACE_ERR +261 drivers/gpu/drm/i915/i915_request.h

05235c535404b7 drivers/gpu/drm/i915/i915_gem_request.h Chris Wilson 2016-07-20  255  
e61e0f51ba7974 drivers/gpu/drm/i915/i915_request.h     Chris Wilson 2018-02-21  256  static inline struct i915_request *
f54d1867005c33 drivers/gpu/drm/i915/i915_gem_request.h Chris Wilson 2016-10-25  257  to_request(struct dma_fence *fence)
04769652c8c7ad drivers/gpu/drm/i915/i915_gem_request.h Chris Wilson 2016-07-20  258  {
04769652c8c7ad drivers/gpu/drm/i915/i915_gem_request.h Chris Wilson 2016-07-20  259  	/* We assume that NULL fence/request are interoperable */
e61e0f51ba7974 drivers/gpu/drm/i915/i915_request.h     Chris Wilson 2018-02-21  260  	BUILD_BUG_ON(offsetof(struct i915_request, fence) != 0);
b52992c06c9020 drivers/gpu/drm/i915/i915_gem_request.h Chris Wilson 2016-10-28 @261  	GEM_BUG_ON(fence && !dma_fence_is_i915(fence));
e61e0f51ba7974 drivers/gpu/drm/i915/i915_request.h     Chris Wilson 2018-02-21  262  	return container_of(fence, struct i915_request, fence);
04769652c8c7ad drivers/gpu/drm/i915/i915_gem_request.h Chris Wilson 2016-07-20  263  }
04769652c8c7ad drivers/gpu/drm/i915/i915_gem_request.h Chris Wilson 2016-07-20  264  

:::::: The code at line 261 was first introduced by commit
:::::: b52992c06c9020cecb1b9807855301e5f62ec968 drm/i915: Support asynchronous waits on struct fence from i915_gem_request

:::::: TO: Chris Wilson <chris at chris-wilson.co.uk>
:::::: CC: Chris Wilson <chris at chris-wilson.co.uk>

---
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: 30354 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20191010/a1691dc1/attachment-0001.gz>


More information about the Intel-gfx mailing list