mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Cercueil <paul@crapouillou.net>
To: Linus Walleij <linus.walleij@linaro.org>,
	Arnd Bergmann <arnd@kernel.org>
Cc: od@zcrc.me, GPIO SUBSYSTEM <linux-gpio@vger.kernel.org>,
	linux-kernel@vger.kernel.org,
	Zhou Yanjie <zhouyanjie@wanyeetech.com>
Subject: Re: [PATCH v2 1/2] kconfig.h: Add IF_ENABLED() macro
Date: Mon, 11 Jan 2021 08:45:23 +0000	[thread overview]
Message-ID: <NNHRMQ.2ALS3SQBYT352@crapouillou.net> (raw)
In-Reply-To: <CACRpkdYautJ+aNrK+gqmAUzVCOgQH-WuXqEOn4FyW1hfeWa2zg@mail.gmail.com>

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.
> 
> 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.

Arnd? Any feedback?

Cheers,
-Paul



  reply	other threads:[~2021-01-11  8:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-13 23:54 Paul Cercueil
2020-12-13 23:54 ` [PATCH v2 2/2] pinctrl: ingenic: Only support SoCs enabled in config Paul Cercueil
2020-12-14  9:05 ` [PATCH v2 1/2] kconfig.h: Add IF_ENABLED() macro Linus Walleij
2021-01-11  8:45   ` Paul Cercueil [this message]
2021-01-15 11:47     ` Arnd Bergmann
2021-01-18 15:14 ` Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=NNHRMQ.2ALS3SQBYT352@crapouillou.net \
    --to=paul@crapouillou.net \
    --cc=arnd@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=od@zcrc.me \
    --cc=zhouyanjie@wanyeetech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®