On Tue, 2022-06-21 at 19:17 -0700, Eric Biggers wrote:
On Tue, Jun 21, 2022 at 10:03:39AM -0400, Mimi Zohar wrote:Thanks, Eric, for the clarification.
On Tue, 2022-06-21 at 18:58 +0800, xiujianfeng wrote:IS_ENABLED() is a compile time constant. So the patch looks fine to me.
Hi, AhmadThe difference between using ifdef's and IS_ENABLED is when the
在 2022/6/7 14:06, Ahmad Fatoum 写道:
On 06.06.22 12:10, Xiu Jianfeng wrote:
Use IS_ENABLED(CONFIG_XXX) instead of #ifdef/#endif statements to
initialize .enabled, minor simplicity improvement.
decision is made - build time, run time. Please update the patch
description providing an explanation for needing to make the decision
at run time.
thanks,
As LSMs are only builtin, why the need for using IS_ENABLED as opposed
to IS_BUILTIN?
#define IS_ENABLED(option) __or(IS_BUILTIN(option), IS_MODULE(option))
thanks,
Mimi
.