Re: [PATCH] spinlock: alter inlining of _spin_lock_cb()

2023-06-14 Thread Stefano Stabellini
On Wed, 14 Jun 2023, Jan Beulich wrote: > To comply with Misra rule 8.10 ("An inline function shall be declared > with the static storage class"), convert what is presently > _spin_lock_cb() to an always-inline (and static) helper, while making > the function itself a thin wrapper, just like _spin_

[PATCH] spinlock: alter inlining of _spin_lock_cb()

2023-06-14 Thread Jan Beulich
To comply with Misra rule 8.10 ("An inline function shall be declared with the static storage class"), convert what is presently _spin_lock_cb() to an always-inline (and static) helper, while making the function itself a thin wrapper, just like _spin_lock() is. While there drop the unlikely() from