All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-lts:6.6/preempt-rt 3/3] drivers/gpu/drm/i915/display/intel_color.c:2820:6: warning: variable 'index' set but not used
@ 2024-12-27 18:01 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-27 18:01 UTC (permalink / raw)
  To: Uma Shankar; +Cc: oe-kbuild-all, Junxiao Chang, Bhanuprakash Modem

tree:   https://github.com/intel/linux-intel-lts.git 6.6/preempt-rt
head:   7f064b9d8937d880fb64d1df8d1e8b8115a1c128
commit: c12115088f707bd8090f94bb1bdc607afad810df [3/3] drm/i915/xelpd: Add support for Logarithmic gamma mode
config: i386-defconfig (https://download.01.org/0day-ci/archive/20241228/202412280207.sfxQ8fLf-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241228/202412280207.sfxQ8fLf-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412280207.sfxQ8fLf-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/i915/display/intel_color.c:28:
   In file included from drivers/gpu/drm/i915/display/intel_de.h:9:
   In file included from drivers/gpu/drm/i915/i915_drv.h:40:
   In file included from drivers/gpu/drm/i915/display/intel_display_core.h:16:
   In file included from include/drm/drm_connector.h:32:
   In file included from include/drm/drm_util.h:36:
   In file included from include/linux/kgdb.h:19:
   In file included from include/linux/kprobes.h:28:
   In file included from include/linux/ftrace.h:13:
   In file included from include/linux/kallsyms.h:13:
   In file included from include/linux/mm.h:2168:
   include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     522 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> drivers/gpu/drm/i915/display/intel_color.c:2820:6: warning: variable 'index' set but not used [-Wunused-but-set-variable]
    2820 |         u32 index = 0;
         |             ^
   2 warnings generated.


vim +/index +2820 drivers/gpu/drm/i915/display/intel_color.c

  2813	
  2814	static int icl_color_check(struct intel_crtc_state *crtc_state)
  2815	{
  2816		struct drm_device *dev = crtc_state->uapi.crtc->dev;
  2817		struct drm_i915_private *dev_priv = to_i915(dev);
  2818		struct drm_property *property = crtc_state->uapi.crtc->gamma_mode_property;
  2819		struct drm_property_enum *prop_enum;
> 2820		u32 index = 0;
  2821		int ret;
  2822	
  2823		ret = check_luts(crtc_state);
  2824		if (ret)
  2825			return ret;
  2826	
  2827		if (DISPLAY_VER(dev_priv) >= 13) {
  2828			list_for_each_entry(prop_enum, &property->enum_list, head) {
  2829				if (prop_enum->value == crtc_state->uapi.gamma_mode) {
  2830					if (!strcmp(prop_enum->name,
  2831						    "logarithmic gamma")) {
  2832						crtc_state->uapi.gamma_mode_type =
  2833							GAMMA_MODE_LOGARITHMIC_12BIT;
  2834						drm_dbg_kms(dev,
  2835							    "logarithmic gamma enabled\n");
  2836					}
  2837					break;
  2838				}
  2839				index++;
  2840			}
  2841		}
  2842	
  2843		crtc_state->gamma_mode = icl_gamma_mode(crtc_state);
  2844	
  2845		crtc_state->csc_mode = icl_csc_mode(crtc_state);
  2846	
  2847		intel_assign_luts(crtc_state);
  2848	
  2849		icl_assign_csc(crtc_state);
  2850	
  2851		crtc_state->preload_luts = intel_can_preload_luts(crtc_state);
  2852	
  2853		return 0;
  2854	}
  2855	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-27 18:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-27 18:01 [intel-lts:6.6/preempt-rt 3/3] drivers/gpu/drm/i915/display/intel_color.c:2820:6: warning: variable 'index' set but not used kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.