From: Masahiro Yamada <masahiroy@kernel.org>
To: linux-kbuild@vger.kernel.org
Cc: linux-gpio@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
Paul Cercueil <paul@crapouillou.net>,
Masahiro Yamada <masahiroy@kernel.org>,
Len Brown <len.brown@intel.com>,
Linus Walleij <linus.walleij@linaro.org>,
Pavel Machek <pavel@ucw.cz>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org,
linux-pm@vger.kernel.org
Subject: [PATCH 0/2] linux/kconfig.h: move IF_ENABLED() out of <linux/kconfig.h>
Date: Fri, 9 Apr 2021 05:58:56 +0900 [thread overview]
Message-ID: <20210408205858.51751-1-masahiroy@kernel.org> (raw)
I insist on <linux/kconfig.h> having only minimal set of macros
that are needed to evaluate CONFIG options.
Everytime somebody added an alien to <linux/kconfig.h>, I needed to
kick it out.
I did not notice 1b399bb04837183cecdc1b32ef1cfc7fcfa75d32 because
I was not addressed by [1].
[1]: https://lore.kernel.org/lkml/?q=kconfig.h%3A+Add+IF_ENABLED%28%29+macro
I like Paul's idea, but if I had noticed the patch in time, I would
have tried my best to persuade to implement it outside of <linux/kconfig.h>
(Paul's initial patch was adding it to a new header instead of <linux/kconfig.h>)
Before it is widely used, I want to fix it.
In 2/2, I converted pm.h to allow driver cleanups.
Masahiro Yamada (2):
linux/kconfig.h: replace IF_ENABLED() with PTR_IF() in
<linux/kernel.h>
pm: allow drivers to drop #ifdef and __maybe_unused from pm callbacks
drivers/pinctrl/pinctrl-ingenic.c | 20 ++++-----
include/linux/kconfig.h | 6 ---
include/linux/kernel.h | 2 +
include/linux/pm.h | 67 +++++++++++--------------------
4 files changed, 36 insertions(+), 59 deletions(-)
--
2.27.0
next reply other threads:[~2021-04-08 21:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-08 20:58 Masahiro Yamada [this message]
2021-04-08 20:58 ` [PATCH 1/2] linux/kconfig.h: replace IF_ENABLED() with PTR_IF() in <linux/kernel.h> Masahiro Yamada
2021-04-09 8:15 ` Paul Cercueil
2021-04-09 8:30 ` Masahiro Yamada
2021-04-09 9:38 ` Paul Cercueil
2021-04-09 9:24 ` Andy Shevchenko
2021-04-10 3:52 ` Masahiro Yamada
2021-04-08 20:58 ` [PATCH 2/2] pm: allow drivers to drop #ifdef and __maybe_unused from pm callbacks Masahiro Yamada
2021-04-08 21:29 ` Arnd Bergmann
2021-04-09 3:17 ` Masahiro Yamada
2021-04-08 23:49 ` kernel test robot
2021-04-08 23:55 ` kernel test robot
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=20210408205858.51751-1-masahiroy@kernel.org \
--to=masahiroy@kernel.org \
--cc=arnd@arndb.de \
--cc=len.brown@intel.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=paul@crapouillou.net \
--cc=pavel@ucw.cz \
--cc=rjw@rjwysocki.net \
/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;
as well as URLs for NNTP newsgroup(s).