lkml.org 
[lkml]   [2021]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2 1/2] kconfig.h: Add IF_ENABLED() macro
On Mon, Jan 11, 2021 at 9:45 AM Paul Cercueil <paul@crapouillou.net> wrote:
>
> Hi,
>
> Le lun. 14 déc. 2020 à 10:05, Linus Walleij
> <linus.walleij@linaro.org> a écrit :
> > On Mon, Dec 14, 2020 at 12:54 AM Paul Cercueil <paul@crapouillou.net>
> > wrote:
> >
> >> IF_ENABLED(CONFIG_FOO, ptr) evaluates to (ptr) if CONFIG_FOO is set
> >> to 'y'
> >> or 'm', NULL otherwise. The (ptr) argument must be a pointer.
> >>
> >> The IF_ENABLED() macro can be very useful to help GCC drop dead
> >> code.

Looks great! Thanks a lot for getting this sorted.

> > I can apply this with the other patch to the pinctrl subsystem if
> > Arnd or someone else who is good at KConfig provides an ACK.

Yes, please do.

Acked-by: Arnd Bergmann <arnd@arndb.de>

\
 
 \ /
  Last update: 2021-01-15 12:50    [W:0.088 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site