[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202409240317.ZiYfocHc-lkp@intel.com>
Date: Tue, 24 Sep 2024 03:54:34 +0800
From: kernel test robot <lkp@...el.com>
To: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
Lucas De Marchi <lucas.demarchi@...el.com>
Subject: drivers/gpu/drm/i915/display/intel_display.c:1909:20: error:
arithmetic between different enumeration types ('enum tc_port' and 'enum
port')
Hi Maarten,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: de5cb0dcb74c294ec527eddfe5094acfdb21ff21
commit: 44e694958b95395bd1c41508c88c8ca141bf9bd7 drm/xe/display: Implement display support
date: 9 months ago
config: riscv-randconfig-r053-20240923 (https://download.01.org/0day-ci/archive/20240924/202409240317.ZiYfocHc-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 8663a75fa2f31299ab8d1d90288d9df92aadee88)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240924/202409240317.ZiYfocHc-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409240317.ZiYfocHc-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/i915/display/intel_display.c:28:
In file included from include/linux/i2c.h:19:
In file included from include/linux/regulator/consumer.h:35:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:21:
In file included from arch/riscv/include/asm/sections.h:9:
In file included from include/linux/mm.h:2177:
include/linux/vmstat.h:522:36: error: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Werror,-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from drivers/gpu/drm/i915/display/intel_display.c:89:
drivers/gpu/drm/i915/display/intel_frontbuffer.h:46:21: error: field has incomplete type 'struct i915_active'
46 | struct i915_active write;
| ^
drivers/gpu/drm/i915/display/intel_frontbuffer.h:46:9: note: forward declaration of 'struct i915_active'
46 | struct i915_active write;
| ^
drivers/gpu/drm/i915/display/intel_display.c:314:17: error: arithmetic between different enumeration types ('enum transcoder' and 'enum intel_display_power_domain') [-Werror,-Wenum-enum-conversion]
314 | power_domain = POWER_DOMAIN_TRANSCODER(cpu_transcoder);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_power.h:125:10: note: expanded from macro 'POWER_DOMAIN_TRANSCODER'
125 | (tran) + POWER_DOMAIN_TRANSCODER_A)
| ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display.c:1889:16: error: arithmetic between different enumeration types ('enum phy' and 'enum port') [-Werror,-Wenum-enum-conversion]
1889 | return PHY_D + port - PORT_D_XELPD;
| ~~~~~ ^ ~~~~
drivers/gpu/drm/i915/display/intel_display.c:1891:16: error: arithmetic between different enumeration types ('enum phy' and 'enum port') [-Werror,-Wenum-enum-conversion]
1891 | return PHY_F + port - PORT_TC1;
| ~~~~~ ^ ~~~~
drivers/gpu/drm/i915/display/intel_display.c:1893:16: error: arithmetic between different enumeration types ('enum phy' and 'enum port') [-Werror,-Wenum-enum-conversion]
1893 | return PHY_B + port - PORT_TC1;
| ~~~~~ ^ ~~~~
drivers/gpu/drm/i915/display/intel_display.c:1895:16: error: arithmetic between different enumeration types ('enum phy' and 'enum port') [-Werror,-Wenum-enum-conversion]
1895 | return PHY_C + port - PORT_TC1;
| ~~~~~ ^ ~~~~
drivers/gpu/drm/i915/display/intel_display.c:1900:15: error: arithmetic between different enumeration types ('enum phy' and 'enum port') [-Werror,-Wenum-enum-conversion]
1900 | return PHY_A + port - PORT_A;
| ~~~~~ ^ ~~~~
>> drivers/gpu/drm/i915/display/intel_display.c:1909:20: error: arithmetic between different enumeration types ('enum tc_port' and 'enum port') [-Werror,-Wenum-enum-conversion]
1909 | return TC_PORT_1 + port - PORT_TC1;
| ~~~~~~~~~ ^ ~~~~
drivers/gpu/drm/i915/display/intel_display.c:1911:20: error: arithmetic between different enumeration types ('enum tc_port' and 'enum port') [-Werror,-Wenum-enum-conversion]
1911 | return TC_PORT_1 + port - PORT_C;
| ~~~~~~~~~ ^ ~~~~
drivers/gpu/drm/i915/display/intel_display.c:1939:10: error: arithmetic between different enumeration types ('enum pipe' and 'enum intel_display_power_domain') [-Werror,-Wenum-enum-conversion]
1939 | set_bit(POWER_DOMAIN_PIPE(pipe), mask->bits);
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_power.h:120:41: note: expanded from macro 'POWER_DOMAIN_PIPE'
120 | #define POWER_DOMAIN_PIPE(pipe) ((pipe) + POWER_DOMAIN_PIPE_A)
| ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display.c:1940:10: error: arithmetic between different enumeration types ('enum transcoder' and 'enum intel_display_power_domain') [-Werror,-Wenum-enum-conversion]
1940 | set_bit(POWER_DOMAIN_TRANSCODER(cpu_transcoder), mask->bits);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_power.h:125:10: note: expanded from macro 'POWER_DOMAIN_TRANSCODER'
125 | (tran) + POWER_DOMAIN_TRANSCODER_A)
| ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display.c:1943:11: error: arithmetic between different enumeration types ('enum pipe' and 'enum intel_display_power_domain') [-Werror,-Wenum-enum-conversion]
1943 | set_bit(POWER_DOMAIN_PIPE_PANEL_FITTER(pipe), mask->bits);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_power.h:122:11: note: expanded from macro 'POWER_DOMAIN_PIPE_PANEL_FITTER'
122 | ((pipe) + POWER_DOMAIN_PIPE_PANEL_FITTER_A)
| ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display.c:2943:17: error: arithmetic between different enumeration types ('enum pipe' and 'enum intel_display_power_domain') [-Werror,-Wenum-enum-conversion]
2943 | power_domain = POWER_DOMAIN_PIPE(crtc->pipe);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_power.h:120:41: note: expanded from macro 'POWER_DOMAIN_PIPE'
120 | #define POWER_DOMAIN_PIPE(pipe) ((pipe) + POWER_DOMAIN_PIPE_A)
| ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display.c:3335:17: error: arithmetic between different enumeration types ('enum pipe' and 'enum intel_display_power_domain') [-Werror,-Wenum-enum-conversion]
3335 | power_domain = POWER_DOMAIN_PIPE(crtc->pipe);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_power.h:120:41: note: expanded from macro 'POWER_DOMAIN_PIPE'
120 | #define POWER_DOMAIN_PIPE(pipe) ((pipe) + POWER_DOMAIN_PIPE_A)
| ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display.c:3426:17: error: arithmetic between different enumeration types ('enum transcoder' and 'enum intel_display_power_domain') [-Werror,-Wenum-enum-conversion]
3426 | power_domain = POWER_DOMAIN_TRANSCODER(cpu_transcoder);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_power.h:125:10: note: expanded from macro 'POWER_DOMAIN_TRANSCODER'
125 | (tran) + POWER_DOMAIN_TRANSCODER_A)
| ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display.c:3464:18: error: arithmetic between different enumeration types ('enum pipe' and 'enum intel_display_power_domain') [-Werror,-Wenum-enum-conversion]
3464 | power_domain = POWER_DOMAIN_PIPE(pipe);
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_power.h:120:41: note: expanded from macro 'POWER_DOMAIN_PIPE'
120 | #define POWER_DOMAIN_PIPE(pipe) ((pipe) + POWER_DOMAIN_PIPE_A)
| ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display.c:3542:18: error: arithmetic between different enumeration types ('enum transcoder' and 'enum intel_display_power_domain') [-Werror,-Wenum-enum-conversion]
3542 | power_domain = POWER_DOMAIN_TRANSCODER(cpu_transcoder);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_power.h:125:10: note: expanded from macro 'POWER_DOMAIN_TRANSCODER'
125 | (tran) + POWER_DOMAIN_TRANSCODER_A)
| ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display.c:3647:14: error: arithmetic between different enumeration types ('enum transcoder' and 'enum intel_display_power_domain') [-Werror,-Wenum-enum-conversion]
3647 | POWER_DOMAIN_TRANSCODER(pipe_config->cpu_transcoder)))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_power.h:125:10: note: expanded from macro 'POWER_DOMAIN_TRANSCODER'
125 | (tran) + POWER_DOMAIN_TRANSCODER_A)
| ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for ACPI_WMI
Depends on [n]: X86_PLATFORM_DEVICES [=n] && ACPI [=y]
Selected by [m]:
- DRM_XE [=m] && HAS_IOMEM [=y] && DRM [=m] && PCI [=y] && MMU [=y] && (m && MODULES [=y] || y && KUNIT [=n]=y) && ACPI [=y]
vim +1909 drivers/gpu/drm/i915/display/intel_display.c
358633e71c0747 drivers/gpu/drm/i915/display/intel_display.c Matt Roper 2019-07-09 1902
ac213c1b45f7dc drivers/gpu/drm/i915/intel_display.c Paulo Zanoni 2018-05-21 1903 enum tc_port intel_port_to_tc(struct drm_i915_private *dev_priv, enum port port)
ac213c1b45f7dc drivers/gpu/drm/i915/intel_display.c Paulo Zanoni 2018-05-21 1904 {
358633e71c0747 drivers/gpu/drm/i915/display/intel_display.c Matt Roper 2019-07-09 1905 if (!intel_phy_is_tc(dev_priv, intel_port_to_phy(dev_priv, port)))
320c670c048d3b drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-10-28 1906 return TC_PORT_NONE;
ac213c1b45f7dc drivers/gpu/drm/i915/intel_display.c Paulo Zanoni 2018-05-21 1907
005e95377249cb drivers/gpu/drm/i915/display/intel_display.c Matt Roper 2021-03-19 1908 if (DISPLAY_VER(dev_priv) >= 12)
1d8ca002456b6c drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-10-28 @1909 return TC_PORT_1 + port - PORT_TC1;
1d8ca002456b6c drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-10-28 1910 else
1d8ca002456b6c drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-10-28 1911 return TC_PORT_1 + port - PORT_C;
ac213c1b45f7dc drivers/gpu/drm/i915/intel_display.c Paulo Zanoni 2018-05-21 1912 }
ac213c1b45f7dc drivers/gpu/drm/i915/intel_display.c Paulo Zanoni 2018-05-21 1913
:::::: The code at line 1909 was first introduced by commit
:::::: 1d8ca002456b6c504b0af2d159c4776ba6b1ad81 drm/i915: Add PORT_TCn aliases to enum port
:::::: TO: Ville Syrjälä <ville.syrjala@...ux.intel.com>
:::::: CC: Ville Syrjälä <ville.syrjala@...ux.intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists