Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4230839rwb; Tue, 20 Sep 2022 10:36:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7UAw9gAcyYoSAxQiWhf2pJnuqoBjc4Df56e4J1K5Rgl83K5WjsIjATOK6qCB/gaOo+F6Y7 X-Received: by 2002:a17:90b:4b88:b0:202:e381:e643 with SMTP id lr8-20020a17090b4b8800b00202e381e643mr4968276pjb.148.1663695383178; Tue, 20 Sep 2022 10:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663695383; cv=none; d=google.com; s=arc-20160816; b=fSOgsJPKneMaM6vDlvOfd4xM6FPVb1S1URcR63MZ3BVGiWlZ/Z6sFuZTyDrQnzCZ65 7J91YbVJFvBjOYUpBKb94qpEod59sb8jIMnq0IXcx5ZSAeDjSWefZnl1xtFzHKG+qOtT bT+1U8G+Wqdck8/wNnpjQoz5imt3ZeK8yGtAgFDPV57tISBCyiv5eqKHGg6+qCySz7oB CAEzlhsC4idsZ7MuKoIXFVou07u9O+W+QfW+RiVz57tA1QeHYAlGhVdG53PJqqzAcZSw w+NAMBQo8Cr644FTh95kuJGdCirT8lUxN4zM9KBOBIC+bFHTWLiNnSjqWe+ElsaRnS54 vPzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F60D75pTA+gT35c2vVeU+MijOLQ5qVl8itbWd3qp8BM=; b=qflLZUdHms6Xt9hxIDlRCP+RZUpFMldmNCq3rwNSzbt795lr1evaVnbWjQrT7baUsO a8+7tROp9Lr/4/hSMNIqFwfCwfcLhRGkvgp6HdVGoaFhzZ6patlqXuTdx55G/gV0YBH7 00g8B4h3oiiIRiyvDorPLlLC27m978G7OJnvGqaSchD76qY9by4OEdmnlJaBLfKS9inJ mD15hdjXk4uWNx1Z0CL1xWd+mX10dFlPsPrwZb7CX+0OuZ/VGhb6quuhSf496h26HUaT PKhsJkSm+fepHLct2mswsax1nnIiPMy72guVZllTIIjEaM4abXZraOeoRipXSMw88Tm3 dFng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dhErWCSX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n25-20020a634d59000000b00438c64bda21si317675pgl.326.2022.09.20.10.36.12; Tue, 20 Sep 2022 10:36:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dhErWCSX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230168AbiITQdM (ORCPT + 99 others); Tue, 20 Sep 2022 12:33:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiITQdK (ORCPT ); Tue, 20 Sep 2022 12:33:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95834647EF for ; Tue, 20 Sep 2022 09:33:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4D949B826B7 for ; Tue, 20 Sep 2022 16:33:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D3ABC433C1; Tue, 20 Sep 2022 16:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663691587; bh=SyW+GjcCjRvE/yEXks2zPGJu/Rt4pnX5r+N3a1uyxRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dhErWCSXOBGZYglnFQomPh1MstM47hkNjGtSFgdan3Md7RI2FRukF/duTNdl0C68A x5UiXF8ItPbVLg0jQHak3yfVzS4E99Ebn9mfmAzIZnII5mCA/VbK7DHD3YIcME+YWA RDTHsOhFZewi3rpaIHKYL658obI0MyrNue5EYyENGO+CSaXHIiCImFATLALPrIzp0J ise+R6QUykAYt/mFnaxfNlCJFIKEGbRRswnNePCbElcVV9olZu69MU/GWV1QmN9cxZ X/KyWzw4lots2TpacCtsCwBBEdRsmY3lXLgqXnaIFnAxutgs4NDtBVHpYwhl0vlp8S j8QIvUl3P20+A== From: SeongJae Park To: Xin Hao Cc: sj@kernel.org, akpm@linux-foundation.org, damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm/damon/sysfs: return 'err' value when call kstrtoul() failed Date: Tue, 20 Sep 2022 16:33:04 +0000 Message-Id: <20220920163304.52672-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220920025158.70293-1-xhao@linux.alibaba.com> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Xin, On Tue, 20 Sep 2022 10:51:58 +0800 Xin Hao wrote: > We had better return the 'err' value when calling kstrtoul() failed, so > the user will know why it really fails, there do little change, let it > return the 'err' value when failed. > > Suggested-by: SeongJae Park > Signed-off-by: Xin Hao Looks good to me overall, but... > Changes from v1 > https://lore.kernel.org/linux-mm/20220919170305.61335-1-sj@kernel.org/T/ > - keep the 'err' variable, and return the 'err' value when failed. Patch changelog shouldn't be here as a part of the commit message, > --- But here. Other than that, Reviewed-by: SeongJae Park I will revise and post it on behalf of Xin, for reducing unnecessary Andrew's burden. Thanks, SJ [...]