Re: [PATCH v2 08/12] x86/bug: Add BUG_FORMAT basics
From: Linus Torvalds
Date: Tue Nov 25 2025 - 11:28:24 EST
On Tue, 25 Nov 2025 at 07:17, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> Ard came up with this glorious hack :-)
"glorious".
Hmm. I _really_ don't love how it now uses that odd label across
macros, it's not screaming "obvious" to me.
How bad would it be to just not use a NULL pointer at all, and instead
make the "no format" be "empty format"?
(Slightly related thing: could we perhaps just make x86-32 also use
the relative format, and get rid of some of the horrid #ifdef's in the
x86 <asm/bug.h> implementation? Because that "__BUG_REL" thing is not
a thing of beauty either).
Linus