compiler.h: Explain how __is_constexpr() works
authorKees Cook <keescook@chromium.org>
Fri, 1 Mar 2024 04:44:37 +0000 (20:44 -0800)
committerKees Cook <keescook@chromium.org>
Sat, 2 Mar 2024 00:03:32 +0000 (16:03 -0800)
commitc3b9a398fb0dae67f91e7ae4bb492e04ac2c80c0
tree09538b011ddcd10f646764778314c94b4f5f0463
parentbd1ebf2467f9c5d157bec7b025e83f8ffdae1318
compiler.h: Explain how __is_constexpr() works

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@kernel.org>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20240301044428.work.411-kees@kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
include/linux/compiler.h