Messages in this thread | | | Date | Fri, 5 Jun 2020 17:32:28 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH] checkpatch: Add test for possible misuse of IS_ENABLED() without CONFIG_ |
| |
On Fri, 05 Jun 2020 11:24:43 -0700 Joe Perches <joe@perches.com> wrote:
> IS_ENABLED is almost always used with CONFIG_<FOO> defines. > > Add a test to verify that the #define being tested starts with CONFIG_.
Yay.
I wonder if there's a simple way of testing whether the CONFIG_ thing can *ever* be enabled. So detect if someone does
if (IS_ENABLED(CONFIG_BLOCKK))
| |