From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161138Ab2GLUxn (ORCPT ); Thu, 12 Jul 2012 16:53:43 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:36678 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161082Ab2GLUxj (ORCPT ); Thu, 12 Jul 2012 16:53:39 -0400 From: Eldad Zack To: Andrew Morton , Joe Perches , linux-kernel@vger.kernel.org (open list) Cc: Eldad Zack , "J. Bruce Fields" Subject: [PATCH 2/2] simple_strto*: annotate function as obsolete Date: Thu, 12 Jul 2012 22:53:14 +0200 Message-Id: <1342126395-18055-2-git-send-email-eldad@fogrefinery.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1342126395-18055-1-git-send-email-eldad@fogrefinery.com> References: <1342126395-18055-1-git-send-email-eldad@fogrefinery.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch update the documentation to simple_strto* to reflect that it has been obsoleted and advise the usage of kstrto*. Cc: J. Bruce Fields Signed-off-by: Eldad Zack --- lib/vsprintf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index c3f36d41..1980cf3 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -38,6 +38,8 @@ * @cp: The start of the string * @endp: A pointer to the end of the parsed string will be placed here * @base: The number base to use + * + * This function is obsolete. Please use kstrtoull instead. */ unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) { @@ -61,6 +63,8 @@ EXPORT_SYMBOL(simple_strtoull); * @cp: The start of the string * @endp: A pointer to the end of the parsed string will be placed here * @base: The number base to use + * + * This function is obsolete. Please use kstrtoul instead. */ unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base) { @@ -73,6 +77,8 @@ EXPORT_SYMBOL(simple_strtoul); * @cp: The start of the string * @endp: A pointer to the end of the parsed string will be placed here * @base: The number base to use + * + * This function is obsolete. Please use kstrtol instead. */ long simple_strtol(const char *cp, char **endp, unsigned int base) { @@ -88,6 +94,8 @@ EXPORT_SYMBOL(simple_strtol); * @cp: The start of the string * @endp: A pointer to the end of the parsed string will be placed here * @base: The number base to use + * + * This function is obsolete. Please use kstrtoll instead. */ long long simple_strtoll(const char *cp, char **endp, unsigned int base) { -- 1.7.10.4