From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kees Cook Subject: [PATCH v3 0/4] lib: add "on" and "off" to strtobool Date: Fri, 5 Feb 2016 13:12:45 -0800 Message-ID: <1454706769-8729-1-git-send-email-keescook@chromium.org> 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-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-s390-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Andrew Morton Return-path: Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org 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