From: kernel test robot <lkp@intel.com>
To: Kees Cook <keescook@chromium.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
"Christian König" <christian.koenig@amd.com>,
"Zack Rusin" <zackr@vmware.com>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>
Subject: drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:81: warning: Excess struct member 'boxes' description in 'vmw_surface_dirty'
Date: Fri, 15 Dec 2023 08:00:11 +0800 [thread overview]
Message-ID: <202312150701.kNI9LuM3-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c7402612e2e61b76177f22e6e7f705adcbecc6fe
commit: 45744668746b0bcb36d58a73c2cab603090da9ac drm/vmwgfx: Annotate struct vmw_surface_dirty with __counted_by
date: 2 months ago
config: i386-buildonly-randconfig-004-20231214 (https://download.01.org/0day-ci/archive/20231215/202312150701.kNI9LuM3-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231215/202312150701.kNI9LuM3-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/202312150701.kNI9LuM3-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:55: warning: Excess struct member 'base' description in 'vmw_user_surface'
>> drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:81: warning: Excess struct member 'boxes' description in 'vmw_surface_dirty'
vim +81 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
543831cfc97666 Thomas Hellstrom 2012-11-20 70
9ca7d19ff8ba62 Thomas Hellstrom 2019-03-19 71 /**
cde3435af618c7 Lee Jones 2021-01-15 72 * struct vmw_surface_dirty - Surface dirty-tracker
9ca7d19ff8ba62 Thomas Hellstrom 2019-03-19 73 * @cache: Cached layout information of the surface.
9ca7d19ff8ba62 Thomas Hellstrom 2019-03-19 74 * @num_subres: Number of subresources.
9ca7d19ff8ba62 Thomas Hellstrom 2019-03-19 75 * @boxes: Array of SVGA3dBoxes indicating dirty regions. One per subresource.
9ca7d19ff8ba62 Thomas Hellstrom 2019-03-19 76 */
9ca7d19ff8ba62 Thomas Hellstrom 2019-03-19 77 struct vmw_surface_dirty {
ebc9ac7c3dfe85 Zack Rusin 2021-06-15 78 struct vmw_surface_cache cache;
9ca7d19ff8ba62 Thomas Hellstrom 2019-03-19 79 u32 num_subres;
45744668746b0b Kees Cook 2023-09-22 80 SVGA3dBox boxes[] __counted_by(num_subres);
9ca7d19ff8ba62 Thomas Hellstrom 2019-03-19 @81 };
9ca7d19ff8ba62 Thomas Hellstrom 2019-03-19 82
:::::: The code at line 81 was first introduced by commit
:::::: 9ca7d19ff8ba6207bccab46536814fe4839df80a drm/vmwgfx: Add surface dirty-tracking callbacks
:::::: TO: Thomas Hellstrom <thellstrom@vmware.com>
:::::: CC: Thomas Hellstrom <thellstrom@vmware.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-12-15 0:00 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=202312150701.kNI9LuM3-lkp@intel.com \
--to=lkp@intel.com \
--cc=christian.koenig@amd.com \
--cc=gustavoars@kernel.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zackr@vmware.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