From: Kees Cook <keescook@chromium.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Kees Cook <keescook@chromium.org>, Joe Perches <joe@perches.com>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Rasmus Villemoes <linux@rasmusvillemoes.dk>,
Daniel Borkmann <daniel@iogearbox.net>,
Amitkumar Karwar <akarwar@marvell.com>,
Nishant Sarmukadam <nishants@marvell.com>,
Kalle Valo <kvalo@codeaurora.org>,
Steve French <sfrench@samba.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
x86@kernel.org, linuxppc-dev@lists.ozlabs.org,
linux-s390@vger.kernel.org, linux-wireless@vger.kernel.org,
netdev@vger.kernel.org, linux-cifs@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v3 0/4] lib: add "on" and "off" to strtobool
Date: Fri, 5 Feb 2016 13:12:45 -0800 [thread overview]
Message-ID: <1454706769-8729-1-git-send-email-keescook@chromium.org> (raw)
This consolidates logic for handling "on"/"off" parsing for bools into the
strtobool function, by way of moving it into kstrtobool (with helpers),
and updating various callers.
v3:
- removed unused "base" argument
- fixed missing description change
- retained inverted __setup return values
- removed needless extra buffer in cifs
v2:
- moved to kstroto* style
arch/powerpc/kernel/rtasd.c | 7 --
arch/powerpc/platforms/pseries/hotplug-cpu.c | 10 ---
arch/s390/kernel/time.c | 8 ---
arch/s390/kernel/topology.c | 7 --
arch/x86/kernel/aperture_64.c | 12 ----
drivers/net/wireless/marvell/mwifiex/debugfs.c | 10 +--
fs/cifs/cifs_debug.c | 56 +++++----------------
fs/cifs/cifs_debug.h | 2
fs/cifs/cifsfs.c | 6 +-
fs/cifs/cifsglob.h | 4 -
include/linux/kernel.h | 2
include/linux/string.h | 6 +-
include/linux/tick.h | 2
kernel/time/hrtimer.c | 10 ---
kernel/time/tick-sched.c | 10 ---
lib/kstrtox.c | 64 +++++++++++++++++++++++++
lib/string.c | 29 -----------
17 files changed, 110 insertions(+), 135 deletions(-)
-Kees
next reply other threads:[~2016-02-05 21:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 21:12 Kees Cook [this message]
2016-02-05 21:12 ` [PATCH v3 1/4] lib: move strtobool to kstrtobool Kees Cook
2016-02-05 21:12 ` [PATCH v3 2/4] lib: update single-char callers of strtobool Kees Cook
2016-02-05 21:12 ` [PATCH v3 3/4] lib: add "on"/"off" support to kstrtobool Kees Cook
2016-02-05 21:12 ` [PATCH v3 4/4] param: convert some "on"/"off" users to strtobool Kees Cook
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=1454706769-8729-1-git-send-email-keescook@chromium.org \
--to=keescook@chromium.org \
--cc=akarwar@marvell.com \
--cc=akpm@linux-foundation.org \
--cc=andy.shevchenko@gmail.com \
--cc=daniel@iogearbox.net \
--cc=heiko.carstens@de.ibm.com \
--cc=joe@perches.com \
--cc=kvalo@codeaurora.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=netdev@vger.kernel.org \
--cc=nishants@marvell.com \
--cc=schwidefsky@de.ibm.com \
--cc=sfrench@samba.org \
--cc=x86@kernel.org \
/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).