public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Ville Syrjälä " <ville.syrjala@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [vsyrjala:remap_tile_ys_64 16/30] drivers/gpu/drm/i915/display/intel_fb.c:1904:3: warning: variable 'plane_size' is uninitialized when used here
Date: Fri, 10 Apr 2026 13:06:04 +0800	[thread overview]
Message-ID: <202604091149.n5nJiAZm-lkp@intel.com> (raw)

tree:   https://github.com/vsyrjala/linux.git remap_tile_ys_64
head:   9a8f5dc5c6e5da24a2df0e93fda770ab217b0886
commit: 03377854bbe51bfb4501ffb15cccc6b45ac74764 [16/30] drm/i915/vma: Add alignment_pad support for rotated views
config: i386-defconfig (https://download.01.org/0day-ci/archive/20260409/202604091149.n5nJiAZm-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260409/202604091149.n5nJiAZm-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/202604091149.n5nJiAZm-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/i915/display/intel_fb.c:1904:3: warning: variable 'plane_size' is uninitialized when used here [-Wuninitialized]
    1904 |                 plane_size += rot_info->plane[i].dst_stride * rot_info->plane[i].width;
         |                 ^~~~~~~~~~
   drivers/gpu/drm/i915/display/intel_fb.c:1902:26: note: initialize the variable 'plane_size' to silence this warning
    1902 |                 unsigned int plane_size;
         |                                        ^
         |                                         = 0
   1 warning generated.


vim +/plane_size +1904 drivers/gpu/drm/i915/display/intel_fb.c

  1895	
  1896	unsigned int intel_rotation_info_size(const struct intel_rotation_info *rot_info)
  1897	{
  1898		unsigned int size = 0;
  1899		int i;
  1900	
  1901		for (i = 0 ; i < ARRAY_SIZE(rot_info->plane); i++) {
  1902			unsigned int plane_size;
  1903	
> 1904			plane_size += rot_info->plane[i].dst_stride * rot_info->plane[i].width;
  1905	
  1906			if (plane_size == 0)
  1907				continue;
  1908	
  1909			if (rot_info->plane_alignment)
  1910				size = ALIGN(size, rot_info->plane_alignment);
  1911	
  1912			size += plane_size;
  1913		}
  1914	
  1915		return size;
  1916	}
  1917	

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

                 reply	other threads:[~2026-04-10  5:06 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=202604091149.n5nJiAZm-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ville.syrjala@linux.intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox