On 2025-07-08 18:52:58 [-0700], Alexei Starovoitov wrote: > From: Alexei Starovoitov <ast@xxxxxxxxxx> > > lockdep_is_held() macro assumes that "struct lockdep_map dep_map;" > is a top level field of any lock that participates in LOCKDEP. > Make it so for local_trylock_t. I am not very pleased with this. I would prefer one struct given that the functions below are shared and the _Generic construct is not as I would have preferred it. Anyway. I meant to redo it but didn't get very far. Since is reasonable for now Reviewed-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> Sebastian