linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] lib: add "on" and "off" to strtobool
@ 2016-02-05 21:12 Kees Cook
  2016-02-05 21:12 ` [PATCH v3 1/4] lib: move strtobool to kstrtobool Kees Cook
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kees Cook @ 2016-02-05 21:12 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Kees Cook, Joe Perches, Andy Shevchenko, Rasmus Villemoes,
	Daniel Borkmann, Amitkumar Karwar, Nishant Sarmukadam,
	Kalle Valo, Steve French, Michael Ellerman, Heiko Carstens,
	Martin Schwidefsky, x86, linuxppc-dev, linux-s390,
	linux-wireless, netdev, linux-cifs, linux-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-05 21:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-05 21:12 [PATCH v3 0/4] lib: add "on" and "off" to strtobool Kees Cook
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

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