[PATCH] drm/imagination: Reasoning code comments for Sparse warnings/errors

2025-06-06 Thread Alexandru Dadu
Added code comments for the lines that might generate Sparse warnings/errors. The warnings/errors cannot be fixed with refactoring without masively impacting the whole code implementation and/or they are incorrectly generated by Sparse. Signed-off-by: Alexandru Dadu --- drivers/gpu/drm

[PATCH v2] drm/imagination: loop counters moved to loop scope

2025-04-05 Thread Alexandru Dadu
Reduce the scope of some loop counters as these aren't needed outside the loops they're used in. Signed-off-by: Alexandru Dadu --- Changes in v2: - Remove a loop counter variable definition - Link to v1: https://lore.kernel.org/r/20250401-for-loop-counter-scope-v1-1-5ba75770b...@

[PATCH] drm/imagination: loop counters moved to loop scope

2025-04-01 Thread Alexandru Dadu
Reduce the scope of some loop counters as these aren't needed outside the loops they're used in. Signed-off-by: Alexandru Dadu --- drivers/gpu/drm/imagination/pvr_debugfs.c | 3 +-- drivers/gpu/drm/imagination/pvr_free_list.c | 3 +-- drivers/gpu/drm/imagination/pvr_fw.c