From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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?
Date: Thu, 03 Dec 2026 23:51:57 +0100 [thread overview]
Message-ID: <20261203234037.pOzMSJM0-lkp@intel.com> (raw)
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
reply other threads:[~2026-12-03 22:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203234037.pOzMSJM0-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.