Re: Parameter void cast in non-DIAGNOSTIC lock assertions

2021-10-29 Thread Visa Hankala
On Fri, Oct 22, 2021 at 01:37:37PM +, Visa Hankala wrote: > Mutex and rwlock assertions turn into no-ops when compiling without > the DIAGNOSTIC option, which is the desired outcome. However, in some > peculiar cases, such as klist_mutex_assertlk() and klist_rwlock_assertlk(), > the lock variab

Parameter void cast in non-DIAGNOSTIC lock assertions

2021-10-22 Thread Visa Hankala
Mutex and rwlock assertions turn into no-ops when compiling without the DIAGNOSTIC option, which is the desired outcome. However, in some peculiar cases, such as klist_mutex_assertlk() and klist_rwlock_assertlk(), the lock variable insidiously becomes unused in the function. This could be avoided i