Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1986877ybv; Fri, 21 Feb 2020 06:52:56 -0800 (PST) X-Google-Smtp-Source: APXvYqz4ZzuHPWaHKLs4P+kBJ+xsAfTaVrfXIUnjGIPzsNyX5ub0SW4Kjuba3pW9Nin5Xbzc7B0G X-Received: by 2002:a9d:6544:: with SMTP id q4mr27190411otl.269.1582296776101; Fri, 21 Feb 2020 06:52:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582296776; cv=none; d=google.com; s=arc-20160816; b=MT/YhkX0du3LTTLycGpW/3SsgQbzvrEfW3POhrOdUnoE8HfKxZwdECDR4ezZAwEAeQ YgkrEeVz8cT8zLPnENoNYZvPghP6cMBLoh3Yi+OlRxK2nekUqVws8vQz/9XN+ELOEKK6 HkvebDzRabVELb3JkGzlP8n03cOwi4rgwVtl9DOcx90RH4w3qoCMsdVucBHT1qAcK/pv Zh+ijZzc40wbJjT4q+SGV9VR/bYaDwGEaHUJsnEQgwWT++PbG7FRQUmiXsekjpULNfbG 9Sy1jxhOQg9JxrCoS+MaOqJTUh8mDTQ0K77qBn8EXWtdJXvEFTDhseWt2/DNwx9ynyaj PauA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=2NFSry4jUagerIflNMwMoOWybSfZeZlj19V+T1hd4p8=; b=RRAd9eNHajKkgh8Z4hSz/+8uXAyHm0o7PZ3yxCFusdvAhEoiF2eXIZoZMzXtP/D/gN lArR8aG54kIId6rN0tGTeTZ+Vym3G7rpcYH0MGoOwHYpCk+oXQPxlL6eeeHDhkHRxvEe EM6AVMrrSOwFY2ywVoc0/FBELi3LImDhiGO3noP++vBj/1ojmdIVI5HPFrYC49NngsLQ rzCbj4dUUrGN6WT8HdLD1xlUTyDf+D0SRovPwSVRavVnRnS8By/EXfq/sqWkwrQ6xnth 2fsi1zvy6tIx9O6R0/lUfGRfX+GPX3DByywFVmYRflalbCoVmOBX9YVSA2X/7KnmHI6D GR+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z20si791029oib.26.2020.02.21.06.52.43; Fri, 21 Feb 2020 06:52:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728971AbgBUOwS (ORCPT + 99 others); Fri, 21 Feb 2020 09:52:18 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:43573 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727315AbgBUOwS (ORCPT ); Fri, 21 Feb 2020 09:52:18 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j59eZ-0000J6-Uu; Fri, 21 Feb 2020 15:51:43 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1j59eX-0003X7-KU; Fri, 21 Feb 2020 15:51:41 +0100 Date: Fri, 21 Feb 2020 15:51:41 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Andy Shevchenko Cc: Petr Mladek , Steven Rostedt , Sergey Senozhatsky , linux-kernel@vger.kernel.org, Rasmus Villemoes Subject: Re: [PATCH v1] lib/vsprintf: update comment about simple_strto() functions Message-ID: <20200221145141.pchim24oht7nxfir@pengutronix.de> References: <20200221085723.42469-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200221085723.42469-1-andriy.shevchenko@linux.intel.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, Feb 21, 2020 at 10:57:23AM +0200, Andy Shevchenko wrote: > The commit 885e68e8b7b1 ("kernel.h: update comment about simple_strto() > functions") updated a comment regard to simple_strto() functions, but > missed similar change in the vsprintf.c module. > > Update comments in vsprintf.c as well for simple_strto() functions. > > Reported-by: Uwe Kleine-K?nig > Signed-off-by: Andy Shevchenko > --- > lib/vsprintf.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/lib/vsprintf.c b/lib/vsprintf.c > index 7c488a1ce318..d5641a217685 100644 > --- a/lib/vsprintf.c > +++ b/lib/vsprintf.c > @@ -58,7 +58,7 @@ > * @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. > + * This function has caveats. Please use kstrtoull instead. > */ I wonder if we instead want to create a set of functions that is versatile enough to cover kstrtoull and simple_strtoull. i.e. fix the rounding problems (that are the caveats, right?) and as calling convention use an errorvalued int return + an output-parameter of the corresponding type. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |