[PATCH 3/4] drm/i915/opregion: convert to struct intel_display

kernel test robot lkp at intel.com
Fri Aug 2 10:07:11 UTC 2024


Hi Jani,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip next-20240802]
[cannot apply to drm-intel/for-linux-next-fixes drm-xe/drm-xe-next linus/master v6.11-rc1]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Jani-Nikula/drm-i915-acpi-convert-to-struct-intel_display/20240802-080825
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
patch link:    https://lore.kernel.org/r/8a71cea4f260a992200c76480c5358b72a7f9187.1722444150.git.jani.nikula%40intel.com
patch subject: [PATCH 3/4] drm/i915/opregion: convert to struct intel_display
config: i386-buildonly-randconfig-004-20240802 (https://download.01.org/0day-ci/archive/20240802/202408021709.1eljj3eQ-lkp@intel.com/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240802/202408021709.1eljj3eQ-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408021709.1eljj3eQ-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/display/intel_bios.c: In function 'opregion_get_panel_type':
>> drivers/gpu/drm/i915/display/intel_bios.c:626:46: error: passing argument 1 of 'intel_opregion_get_panel_type' from incompatible pointer type [-Werror=incompatible-pointer-types]
     626 |         return intel_opregion_get_panel_type(display);
         |                                              ^~~~~~~
         |                                              |
         |                                              struct intel_display *
   In file included from drivers/gpu/drm/i915/display/intel_display_core.h:28,
                    from drivers/gpu/drm/i915/i915_drv.h:40,
                    from drivers/gpu/drm/i915/display/intel_bios.c:34:
   drivers/gpu/drm/i915/display/intel_opregion.h:112:74: note: expected 'struct drm_i915_private *' but argument is of type 'struct intel_display *'
     112 | static inline int intel_opregion_get_panel_type(struct drm_i915_private *dev)
         |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
   cc1: some warnings being treated as errors
--
   drivers/gpu/drm/i915/i915_driver.c: In function 'intel_runtime_suspend':
>> drivers/gpu/drm/i915/i915_driver.c:1536:47: error: passing argument 1 of 'intel_opregion_notify_adapter' from incompatible pointer type [-Werror=incompatible-pointer-types]
    1536 |                 intel_opregion_notify_adapter(display, PCI_D3hot);
         |                                               ^~~~~~~
         |                                               |
         |                                               struct intel_display *
   In file included from drivers/gpu/drm/i915/display/intel_display_core.h:28,
                    from drivers/gpu/drm/i915/i915_drv.h:40,
                    from drivers/gpu/drm/i915/gt/intel_context.h:14,
                    from drivers/gpu/drm/i915/gem/i915_gem_context.h:12,
                    from drivers/gpu/drm/i915/i915_driver.c:67:
   drivers/gpu/drm/i915/display/intel_opregion.h:107:56: note: expected 'struct drm_i915_private *' but argument is of type 'struct intel_display *'
     107 | intel_opregion_notify_adapter(struct drm_i915_private *dev, pci_power_t state)
         |                               ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
   drivers/gpu/drm/i915/i915_driver.c:1545:47: error: passing argument 1 of 'intel_opregion_notify_adapter' from incompatible pointer type [-Werror=incompatible-pointer-types]
    1545 |                 intel_opregion_notify_adapter(display, PCI_D1);
         |                                               ^~~~~~~
         |                                               |
         |                                               struct intel_display *
   drivers/gpu/drm/i915/display/intel_opregion.h:107:56: note: expected 'struct drm_i915_private *' but argument is of type 'struct intel_display *'
     107 | intel_opregion_notify_adapter(struct drm_i915_private *dev, pci_power_t state)
         |                               ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
   drivers/gpu/drm/i915/i915_driver.c: In function 'intel_runtime_resume':
   drivers/gpu/drm/i915/i915_driver.c:1575:39: error: passing argument 1 of 'intel_opregion_notify_adapter' from incompatible pointer type [-Werror=incompatible-pointer-types]
    1575 |         intel_opregion_notify_adapter(display, PCI_D0);
         |                                       ^~~~~~~
         |                                       |
         |                                       struct intel_display *
   drivers/gpu/drm/i915/display/intel_opregion.h:107:56: note: expected 'struct drm_i915_private *' but argument is of type 'struct intel_display *'
     107 | intel_opregion_notify_adapter(struct drm_i915_private *dev, pci_power_t state)
         |                               ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
   cc1: some warnings being treated as errors


vim +/intel_opregion_get_panel_type +626 drivers/gpu/drm/i915/display/intel_bios.c

   619	
   620	static int opregion_get_panel_type(struct drm_i915_private *i915,
   621					   const struct intel_bios_encoder_data *devdata,
   622					   const struct drm_edid *drm_edid, bool use_fallback)
   623	{
   624		struct intel_display *display = &i915->display;
   625	
 > 626		return intel_opregion_get_panel_type(display);
   627	}
   628	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


More information about the Intel-gfx mailing list