All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android15-6.6 1/1] drivers/gpu/drm/i915/display/intel_color.c:785:15: sparse: sparse: unsigned value that used to be signed checked against zero?
@ 2026-12-03 22:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-12-03 22:51 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android15-6.6
head:   79b0613b1469034890f89c55eca1f22691874e5b
commit: 26c3d697becf32cc4331c9f74fa1b6d0f261cc8c [1/1] minmax.h: use BUILD_BUG_ON_MSG() for the lo < hi test in clamp()
config: x86_64-randconfig-r2303-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203234037.pOzMSJM0-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203234037.pOzMSJM0-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/20261203234037.pOzMSJM0-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/i915/display/intel_color.c:785:15: sparse: sparse: unsigned value that used to be signed checked against zero?
   drivers/gpu/drm/i915/display/intel_color.c:783:35: sparse: signed value source

vim +785 drivers/gpu/drm/i915/display/intel_color.c

29dc3739e50da357 drivers/gpu/drm/i915/intel_color.c         Lionel Landwerlin 2016-03-16  779  
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  780  /* convert hw value with given bit_precision to lut property val */
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  781  static u32 intel_color_lut_pack(u32 val, int bit_precision)
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  782  {
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  783  	u32 max = 0xffff >> (16 - bit_precision);
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  784  
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03 @785  	val = clamp_val(val, 0, max);
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  786  
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  787  	if (bit_precision < 16)
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  788  		val <<= 16 - bit_precision;
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  789  
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  790  	return val;
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  791  }
0ff3b23f0c9b85df drivers/gpu/drm/i915/display/intel_color.c Ville Syrjälä     2020-03-03  792  

:::::: The code at line 785 was first introduced by commit
:::::: 0ff3b23f0c9b85df195a97277963b9a834389b50 drm/i915: Refactor LUT read functions

:::::: TO: Ville Syrjälä <ville.syrjala@linux.intel.com>
:::::: CC: Ville Syrjälä <ville.syrjala@linux.intel.com>

-- 
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:[~2026-12-03 22:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 22:51 [android-common:android15-6.6 1/1] drivers/gpu/drm/i915/display/intel_color.c:785:15: sparse: sparse: unsigned value that used to be signed checked against zero? 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.