Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2021312ybv; Fri, 21 Feb 2020 07:28:24 -0800 (PST) X-Google-Smtp-Source: APXvYqye2SMwNSTbFY2s8xmC9RFkRV3kWCkXMOTuvrtoKqQ8qBLACp3t3nEzpTZM/ciAyOXOhcSd X-Received: by 2002:aca:388:: with SMTP id 130mr2334749oid.89.1582298904382; Fri, 21 Feb 2020 07:28:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582298904; cv=none; d=google.com; s=arc-20160816; b=sX0A/7YvP364axM2ZF4TZMGjo3yZzmtB8pVUbBiYjJ9FrYG1pUqlJp0t67lGML+FU/ GBDwNoI/j4fMbZuzF/geYMPuUIxNs228QAEVNzX40aN4x6j1Bx9elO/vOoI317rqqcr8 DZVVAT3pKQ0q59CcsltlXxb6xZ0X5lIG5enkNnbRIHrXFovTTjjo4gBHEYAU6gRexmbu Mjf4PnS0ngQC9l8mCQdb+Hdmj9lq9I6967jgr9YCx3kCtROPPXuRLELTsLCNkdaCMksT Y0k/RRZkoOv43kDNPnOXPxGa+dS5b7214cSGZd49dcMbVSq2h3jI5ri+QQuqN9o1DLp3 Cr+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xI8RnNckMhOpgc8JZHRhZjsgqcl40BWt6G95H+aWOoU=; b=qPEAV76TyVM4ApdBVTXFs8RZJDSMdOtYTJj1jEAcF0ey9A2hjUP2LV3rESYJAPMHUk nkrYhgFnz/LdE65TR9jvsh/K5WfPj4e55PDvYTfT+zhspPfyNMDl9uz3OT0pBAWMJWcQ xEjQjQsDOtEju+dWVa1x+viyuvVxVH6W1CgdhYrw4BVhnf+VeGTSYVINcvRwxNVZEQfP KJK2KzGgx4gkvrNJ7JlJkocqqZz/WKAE/Cmllota2YHxv7hXxZtGjoGB4gqSGnS5F6TS ASzZNA2dPE6ftC0lc0j8y1JPlVqK2ePR8r+00lsKpnvW+VUxGsuF34waq7YPAP53E3Ie gFqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zz+PDM0K; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p189si971523oic.134.2020.02.21.07.28.11; Fri, 21 Feb 2020 07:28:24 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zz+PDM0K; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728937AbgBUP16 (ORCPT + 99 others); Fri, 21 Feb 2020 10:27:58 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46927 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727851AbgBUP15 (ORCPT ); Fri, 21 Feb 2020 10:27:57 -0500 Received: by mail-pf1-f194.google.com with SMTP id k29so1365190pfp.13 for ; Fri, 21 Feb 2020 07:27:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xI8RnNckMhOpgc8JZHRhZjsgqcl40BWt6G95H+aWOoU=; b=Zz+PDM0K7Qrf5SV0dWyBiTayeEubbX43OPijG9fKgBCAnj+8u+NNASe79oNoj7j7ud F4Fya9QZzU6D/qa7G+AIGgm0LEpEMKHPJBnjGo/Edprf2V1gcUWbGQJfLpN+YCuGWisj t0cwdKVOoSdPz3NNHCAga1Lh6xVqx76AJcYTg44CxEDYkePVaVTpjOTjlFFq1FFgEusZ HzuXc92uRjyBtXfhyavSuzbr+cr9fZTzPxcBvbElCc7JydTDszeg7H9Vq+/IWypdROQ+ QFycdBBeJWxdj0hTHa+M6VIaknIj9rlvTOsOmSE6lVlvUFlnO+7msz5q4rBAgChcyQif F+cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xI8RnNckMhOpgc8JZHRhZjsgqcl40BWt6G95H+aWOoU=; b=M6ow7lxxyMtclWsyDTwGXlAJ/hpPCaosYBHC/hjUKr2J9jK70ToT3D8611X4xp1+4q eEKjRInlDU0RWiaKXxxAuyp2vzwUK8GIQXRDP3sAsYraGD4r0Y8QSMZQcMwVHWxreFWN US26a2DuElfcSrOT77N4OItaH+uFOpy9TaZ1+RHju43NxVYpE2xtZdAdmXI+nAnyQyvo 2Rrm1EyhWJxrn1oXuXLh2U8jUO8LaR6nBMZizBml3mM433iSs21ikRAIZjUu3QlXTUCa nrcdDDxf/wqLzq9tCjvyJTf0TVA1exyaQOdlLR8kOUzebRAPkrYaGTP2xK2/mdbpKfZm 2gUw== X-Gm-Message-State: APjAAAVxY9AkIGzBMKpDiverEhCC5I60Tz27V/yt3Ixe7iLoRsYkDUn8 lhbCQAVHGAQKQVnXR0sSkr5vuAFuuWiOCUhcdVI= X-Received: by 2002:a62:1a09:: with SMTP id a9mr38036828pfa.64.1582298876791; Fri, 21 Feb 2020 07:27:56 -0800 (PST) MIME-Version: 1.0 References: <20200221085723.42469-1-andriy.shevchenko@linux.intel.com> <20200221145141.pchim24oht7nxfir@pengutronix.de> In-Reply-To: <20200221145141.pchim24oht7nxfir@pengutronix.de> From: Andy Shevchenko Date: Fri, 21 Feb 2020 17:27:49 +0200 Message-ID: Subject: Re: [PATCH v1] lib/vsprintf: update comment about simple_strto() functions To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Andy Shevchenko , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Linux Kernel Mailing List , Rasmus Villemoes Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2020 at 4:54 PM Uwe Kleine-K=C3=B6nig wrote: > 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= . ... > > - * 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. It wouldn't be possible to apply same rules to both. They both are part of existing ABI. --=20 With Best Regards, Andy Shevchenko