Re: [PATCH 1/2] if_enabled.h: Add IF_ENABLED_OR_ELSE() and IF_ENABLED() macros
From: Linus Walleij <hidden>
Date: 2020-12-09 09:00:40
Also in:
linux-mips, lkml
From: Linus Walleij <hidden>
Date: 2020-12-09 09:00:40
Also in:
linux-mips, lkml
On Tue, Dec 8, 2020 at 5:48 PM Paul Cercueil [off-list ref] wrote:
Introduce a new header <linux/if_enabled.h>, that brings two new macros: IF_ENABLED_OR_ELSE() and IF_ENABLED().
I understand what the patch is trying to do, but when we already have IS_ENABLED() in <linux/kconfig.h> this syntax becomes a big cognitive confusion for the mind. At least the commit needs to explain why it doesn't work to use IS_ENABLED() instead so that this is needed. Certainly the build failures must be possible to solve so that this can live with the sibling IS_ENABLED() inside <linux/kconfig.h>, it can't be too hard. Yours, Linus Walleij _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel