Re: [PATCH] drm/panthor: Fix clang -Wunused-but-set-variable in tick_ctx_apply()

2024-04-02 Thread Boris Brezillon
On Thu, 28 Mar 2024 09:22:07 -0700 Nathan Chancellor wrote: > Clang warns (or errors with CONFIG_WERROR): > > drivers/gpu/drm/panthor/panthor_sched.c:2048:6: error: variable > 'csg_mod_mask' set but not used [-Werror,-Wunused-but-set-variable] >2048 | u32 csg_mod_mask = 0,

Re: [PATCH] drm/panthor: Fix clang -Wunused-but-set-variable in tick_ctx_apply()

2024-03-28 Thread Justin Stitt
On Thu, Mar 28, 2024 at 9:22 AM Nathan Chancellor wrote: > > Clang warns (or errors with CONFIG_WERROR): > > drivers/gpu/drm/panthor/panthor_sched.c:2048:6: error: variable > 'csg_mod_mask' set but not used [-Werror,-Wunused-but-set-variable] >2048 | u32 csg_mod_mask = 0,

Re: [PATCH] drm/panthor: Fix clang -Wunused-but-set-variable in tick_ctx_apply()

2024-03-28 Thread Steven Price
On 28/03/2024 16:22, Nathan Chancellor wrote: > Clang warns (or errors with CONFIG_WERROR): > > drivers/gpu/drm/panthor/panthor_sched.c:2048:6: error: variable > 'csg_mod_mask' set but not used [-Werror,-Wunused-but-set-variable] >2048 | u32 csg_mod_mask = 0, free_csg_slots = 0; >

[PATCH] drm/panthor: Fix clang -Wunused-but-set-variable in tick_ctx_apply()

2024-03-28 Thread Nathan Chancellor
Clang warns (or errors with CONFIG_WERROR): drivers/gpu/drm/panthor/panthor_sched.c:2048:6: error: variable 'csg_mod_mask' set but not used [-Werror,-Wunused-but-set-variable] 2048 | u32 csg_mod_mask = 0, free_csg_slots = 0; | ^ 1 error generated. The variable