Re: [PATCH] compiler.h: Explain how __is_constexpr() works

From: Nick Desaulniers
Date: Mon Mar 04 2024 - 11:53:40 EST


On Thu, Feb 29, 2024 at 8:44 PM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>
> The __is_constexpr() macro is dark magic. Shed some light on it with
> a comment to explain how and why it works.
>
> Acked-by: Gustavo A. R. Silva <gustavoars@xxxxxxxxxx>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>

Is Documentation/kernel-hacking/hacking.rst perhaps a more appropriate
place for this block of text? Perhaps as another :c:macro: in that
file?

You know I'm not a big fan of increasing header size, even if it is
just a comment.
--
Thanks,
~Nick Desaulniers