* drivers/gpu/drm/panthor/panthor_sched.c:3670 panthor_fdinfo_gather_group_mem_info() warn: iterator 'i' not incremented
@ 2025-12-16 0:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-16 0:16 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-16 0:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-16 0:16 drivers/gpu/drm/panthor/panthor_sched.c:3670 panthor_fdinfo_gather_group_mem_info() warn: iterator 'i' not incremented kernel test robot
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.