Re: [RFC PATCH 4/5] tracing: Remove conditional locking from __DO_TRACE()

From: Linus Torvalds
Date: Tue Nov 26 2024 - 17:41:11 EST


On Tue, 26 Nov 2024 at 14:32, Przemek Kitszel
<przemyslaw.kitszel@xxxxxxxxx> wrote:
>
> BTW shadowing of the goto-label is not a -Wshadow but a -Wfckoff level
> of complain; I have spend a few days to think of something better,
> including abusing of switch and more ugly things, -ENOIDEA

Yeah, I think you need to do that __UNIQUE_ID() thing for labels,
because while you can introduce local labels (see "__label__" use in
the wait macros and a few other places, where we do it) you need to
have a block scope to do that and the goto needs to be inside that
scope, of course.

Which I don't see how to do in this situation.

Linus