[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202312150701.kNI9LuM3-lkp@intel.com>
Date: Fri, 15 Dec 2023 08:00:11 +0800
From: kernel test robot <lkp@...el.com>
To: Kees Cook <keescook@...omium.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Christian König <christian.koenig@....com>,
Zack Rusin <zackr@...are.com>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>
Subject: drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:81: warning: Excess struct
member 'boxes' description in 'vmw_surface_dirty'
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@...el.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@...are.com>
:::::: CC: Thomas Hellstrom <thellstrom@...are.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists