From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: drivers/gpu/drm/panthor/panthor_sched.c:3670 panthor_fdinfo_gather_group_mem_info() warn: iterator 'i' not incremented
Date: Tue, 16 Dec 2025 08:16:02 +0800 [thread overview]
Message-ID: <202512160857.deV0FrrJ-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: "Adrián Larumbe" <adrian.larumbe@collabora.com>
CC: Boris Brezillon <bbrezillon@kernel.org>
CC: Liviu Dudau <liviu.dudau@arm.com>
CC: Mihail Atanassov <mihail.atanassov@arm.com>
CC: Steven Price <steven.price@arm.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
commit: 434e5ca5b5d7ea415670d4fcb399d90d355a1e38 drm/panthor: Expose size of driver internal BO's over fdinfo
date: 10 months ago
:::::: branch date: 2 days ago
:::::: commit date: 10 months ago
config: sparc-randconfig-r072-20251213 (https://download.01.org/0day-ci/archive/20251216/202512160857.deV0FrrJ-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 15.1.0
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202512160857.deV0FrrJ-lkp@intel.com/
New smatch warnings:
drivers/gpu/drm/panthor/panthor_sched.c:3670 panthor_fdinfo_gather_group_mem_info() warn: iterator 'i' not incremented
Old smatch warnings:
drivers/gpu/drm/panthor/panthor_sched.c:2881 panthor_fdinfo_gather_group_samples() warn: iterator 'i' not incremented
drivers/gpu/drm/panthor/panthor_sched.c:3643 panthor_group_pool_destroy() warn: iterator 'i' not incremented
vim +/i +3670 drivers/gpu/drm/panthor/panthor_sched.c
de85488138247d Boris Brezillon 2024-02-29 3650
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3651 /**
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3652 * panthor_fdinfo_gather_group_mem_info() - Retrieve aggregate size of all private kernel BO's
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3653 * belonging to all the groups owned by an open Panthor file
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3654 * @pfile: File.
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3655 * @stats: Memory statistics to be updated.
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3656 *
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3657 */
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3658 void
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3659 panthor_fdinfo_gather_group_mem_info(struct panthor_file *pfile,
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3660 struct drm_memory_stats *stats)
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3661 {
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3662 struct panthor_group_pool *gpool = pfile->groups;
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3663 struct panthor_group *group;
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3664 unsigned long i;
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3665
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3666 if (IS_ERR_OR_NULL(gpool))
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3667 return;
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3668
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3669 xa_lock(&gpool->xa);
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 @3670 xa_for_each(&gpool->xa, i, group) {
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3671 stats->resident += group->fdinfo.kbo_sizes;
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3672 if (group->csg_id >= 0)
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3673 stats->active += group->fdinfo.kbo_sizes;
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3674 }
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3675 xa_unlock(&gpool->xa);
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3676 }
434e5ca5b5d7ea Adrián Larumbe 2025-01-30 3677
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-12-16 0:16 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=202512160857.deV0FrrJ-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@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.