lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a0Jiza_0=31hrj439nJSG23W9EytgxQf12KxT_6dWL9WQ@mail.gmail.com>
Date:   Fri, 15 Jan 2021 12:47:50 +0100
From:   Arnd Bergmann <arnd@...nel.org>
To:     Paul Cercueil <paul@...pouillou.net>
Cc:     Linus Walleij <linus.walleij@...aro.org>, od@...c.me,
        GPIO SUBSYSTEM <linux-gpio@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        Zhou Yanjie <zhouyanjie@...yeetech.com>
Subject: Re: [PATCH v2 1/2] kconfig.h: Add IF_ENABLED() macro

On Mon, Jan 11, 2021 at 9:45 AM Paul Cercueil <paul@...pouillou.net> wrote:
>
> Hi,
>
> Le lun. 14 déc. 2020 à 10:05, Linus Walleij
> <linus.walleij@...aro.org> a écrit :
> > On Mon, Dec 14, 2020 at 12:54 AM Paul Cercueil <paul@...pouillou.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@...db.de>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ