Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp50521rwd; Wed, 17 May 2023 14:30:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6R9OnSK96OgpdUZSXXSoFDGLtbLNN1t7twF4PJ/wB13Lf9cq9pAPq9ACD/+GTJvqAJq69K X-Received: by 2002:a05:6a20:7d9b:b0:105:53:9a0 with SMTP id v27-20020a056a207d9b00b00105005309a0mr22239887pzj.29.1684359020783; Wed, 17 May 2023 14:30:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684359020; cv=none; d=google.com; s=arc-20160816; b=yDF/pOQhRO4kqFfPQpBQLg7aRgr+WLPRb64VOohcPFEzdEy8OxsQXvIxZAJ6K5is8I t0so1BSsZUGbo9c/888WdL6NYkDEBR3nHrgxUrS1wEGJoD8tY3n2B/Ux/LFnR3jexEo4 Rpn/ZWhS20VnOHQa1DfPYR+jiFWEoJfjqCQSjKtcoZMYo5dTS6BTxjkuiElt0uq9GZps fgm2wBIaPfN2WdBLcubiNuJYW0+/xlh3INVnYQ3DUBG7IxNF+cn7VLLfZTAZ3GfmWyjx Nqa39t4ovCe0SnbcNxhRFC8plAeYFJdp28PiQFpn4zWLO/B7kkUSjXwoGGV3cEZYzxfo p9TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9jsEdGvfdDsJ+mT6MXC1fTn4jh5eFXEYIuDnLOJHKSc=; b=Uqsz+B95f9PoE0qLPaSpGETIzbUimObhsOe8u7hRDEyXGHnk8TIHFv8MSKjnE5zWRp nNj1AbxSAypp+T81l46k+KfPQUhz8zZHKNyBnWafYLrk5ieM7Iy4YRiUdFgbKNdo435M VrfJm8Fun52MigidNwvQjjo7kQ6H3O/qrZAFxZiKTffLRqO/5tbLZXveQsBSkuzBZXU8 yu6CJ36LN4fYqEoVVwVcfFlz8eprfirWIx5t6bfH2IZPZaFeJ3rlwbjk7q77PDOWE0Kj ZM4lKkizQPcwuL0B5n9/EeGfsUboBXUZ0f5tVxWMabSfHkvDKjZPbHdgVtAsvTJUo6xQ AIIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=f9CpsApl; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a63bc02000000b005285e30a362si21482571pge.593.2023.05.17.14.30.08; Wed, 17 May 2023 14:30:20 -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=@lunn.ch header.s=20171124 header.b=f9CpsApl; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229638AbjEQVGV (ORCPT + 99 others); Wed, 17 May 2023 17:06:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjEQVGT (ORCPT ); Wed, 17 May 2023 17:06:19 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F66244A3; Wed, 17 May 2023 14:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=9jsEdGvfdDsJ+mT6MXC1fTn4jh5eFXEYIuDnLOJHKSc=; b=f9CpsAplwOwRAUl4dN9HHwKYke 2CDALifW9qh2d6s4SpqgpxLzzTQDLZKvHKHzMoBm3ws3m+o5UszbNyzbsgJqdlBR4TEnd9drTWlh9 /S0EokUGG7eNMCX0d55+57aTeCxMrhPMf+1MGD9G5k0uPlEXOt8/XTpORNYWaSWxaJ2k=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pzOLa-00DAmL-EQ; Wed, 17 May 2023 23:06:10 +0200 Date: Wed, 17 May 2023 23:06:10 +0200 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Yeqi Fu , mw@semihalf.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Orlov Subject: Re: [PATCH] net: mvpp2: Fix error checking Message-ID: <58029a01-f46e-439b-be4f-64f3ef726541@lunn.ch> References: <20230517190811.367461-1-asuk4.q@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Wed, May 17, 2023 at 09:11:10PM +0100, Russell King (Oracle) wrote: > On Thu, May 18, 2023 at 03:08:11AM +0800, Yeqi Fu wrote: > > The function debugfs_create_dir returns ERR_PTR if an error occurs, > > and the appropriate way to verify for errors is to use the inline > > function IS_ERR. The patch will substitute the null-comparison with > > IS_ERR. > > Exactly as I said to a very similar patch received a few days ago > from SikkiLadho: > > "The modern wisdom for debugfs is not to check for any errors, so if > we're going to touch this, that's the route that any patch should be > taking. > > Thanks." > > Your patch seems to have the same Suggested-by: which suggests to me > that you probably know SikkiLadho and are working together with the > person who suggested the change, so it would be good that when a > patch from one of you is commented upon, those comments are taken > into account rather than someone else sending an identical patch to > the first. Hi Yeqi Even better would be you write a patch for the bot you are using to find these issues and teach it that nothing is actually wrong here, or suggest to remove all checks. Andrew