Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1226731pxb; Fri, 1 Apr 2022 07:55:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzULegyDpwCK9v0/iRToq1RYHFoFkv4cdhCufqZFyt8XfuCPYV+aOg2D5/SllvbLPiDWIOn X-Received: by 2002:a05:6402:1906:b0:418:ff14:62b8 with SMTP id e6-20020a056402190600b00418ff1462b8mr21400339edz.40.1648824907450; Fri, 01 Apr 2022 07:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648824907; cv=none; d=google.com; s=arc-20160816; b=To7tsENwUFHzIpWA/b1xTu6+ZHQEF4lAPU9hAvCS7FB9NYt3MQbqE9iapq00ZlmtLV UIYlTp5UEXygdG8F7sX7ETyNQNoHPbi1zHa3WcTF3U6xKIs/Y3wVK3cVfNXQaHc46h15 xkl7Dh/8pcX/trKXPA5g0QALUaGW1QcyAGzZBrWNZiJyMfqW3QMxtVV82vuIAXQv6i77 X9zDmtUzM1gqro7GCaO5X/dPCg3rswo2iqLp8Vs4lly+Tvg9Ilh3Qhuph8pWluK+GBC1 mIsyrcOdcM8K9pDaJBwFP8FVEmuCXnb9hDW0UqhcujVpKC3uSJ0GPtWbryPjiZvjvniw FS+A== 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=vrgHRAcGFYBW5//Px3FPaIXJFM+ziIQctDRECHM/5Yc=; b=IyvTFR3wojror4IXsYX0MOMNR8XjtfSCLCMoRouOmqGCVa4ffxGn5LHa68GsuXaVmt hqSMMAobBcrSvlkuehj6+Hh2p8I/SnpkYdUKMeLSw5q3Ven7gmxm7TrS7xxSDLteCyV/ LucIpv33Wvc8h814TPqFPDqlSvylHfQQOj290NqqJSyNG+oaFbs/388Bdt/X9vAxnS1s dHLrEq4K4acPH4mGx+1rWNCOT8jLMI7nMwTgCphH23fxDrZbjb/SltxgRyIM8T1t2WQ4 +MLza4qWLHK5MjESeDum9uTogsWE1XvP+MbtleS+TTa9PkPRmAAl3huljnxKnlt2uSeU hPIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=L5mcU8fe; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a056402278700b00418c2b5bf83si1759183ede.613.2022.04.01.07.54.40; Fri, 01 Apr 2022 07:55:07 -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=@gmail.com header.s=20210112 header.b=L5mcU8fe; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240407AbiCaRBA (ORCPT + 99 others); Thu, 31 Mar 2022 13:01:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240405AbiCaRAz (ORCPT ); Thu, 31 Mar 2022 13:00:55 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4132F4F453 for ; Thu, 31 Mar 2022 09:59:03 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id c190-20020a1c35c7000000b0038e37907b5bso2090335wma.0 for ; Thu, 31 Mar 2022 09:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vrgHRAcGFYBW5//Px3FPaIXJFM+ziIQctDRECHM/5Yc=; b=L5mcU8fek7ltwjMyOO8VtBdjLOs6rCjrIcH1SxftOcNUCue44IkMbLx0FutOlIy9Gy 678tQasKLTf8JXDUXlAw+pdCKki/CSbvtJcQYLW9o4sZs9wlmwzgAzh99PpGut4nG4Nr RdmGICjFxuXuEu/eaCSkEN2vfeWihguDKUEgDseKIZ2x+ENnyf4eFeJCik5OZYUGB0O0 ihJudIy+wwooJad80VmxU4sXePSaQ2LDxtDBF6lQ5poJNMC77F7VM3VH+0TdzQsdAhFO LYXb2xvRsHAsnQudaJJNKBXt6HIXmpgu8aKngWU32vZwTEpwWepfIbmNH7s8IdlBe1v5 0ZXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vrgHRAcGFYBW5//Px3FPaIXJFM+ziIQctDRECHM/5Yc=; b=OZQBP//E0Z8vvtF3eI0V7p8H7zrpvLJYhbyushh+RzEoE1RwtSMBTqpIAlYKxadNeM wWMz/mEMB9fmM6tdJfOutzDpZLtteO10ZM6ufmdFIuNaHGem0hC6hvJDV1YoCObGbK14 eF25uwUw8KQmQsopxmEaYsj11dmevNGtbnfssBlr4lapj6vaIA/Z4CVGLDDJoxNNHEJA d/aeH9tJ5LOJ3NOz4Y78jhsive8EPeZf310cRLX+IiegNOirpoAWtAuA9XYvh8d9Bjvs AzZO0/dOjrRZuaMCZAkjw3Ua+hPcIIrhZPeV3HPgwCgnniEQRXKw9gkGoePvKn/kUpNn OJ/g== X-Gm-Message-State: AOAM533/0r01qE/d5VAH8qjeF3cZg8nY4qMp2CE0wA6tCyM7GSJpNMZK tNuoL463kroJx1CFUfnzH/Q= X-Received: by 2002:a1c:4e18:0:b0:38c:bd8d:6bd9 with SMTP id g24-20020a1c4e18000000b0038cbd8d6bd9mr5410289wmh.94.1648745941467; Thu, 31 Mar 2022 09:59:01 -0700 (PDT) Received: from leap.localnet (host-95-249-145-232.retail.telecomitalia.it. [95.249.145.232]) by smtp.gmail.com with ESMTPSA id d5-20020adfef85000000b00205b3945fdasm13858693wro.92.2022.03.31.09.58.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Mar 2022 09:59:00 -0700 (PDT) From: "Fabio M. De Francesco" To: Dan Carpenter , Greg Kroah-Hartman Cc: sparmaintainer@unisys.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH v2] staging: unisys: Remove "struct dentry *eth_debugfs_dir" Date: Thu, 31 Mar 2022 18:58:58 +0200 Message-ID: <5558288.DvuYhMxLoT@leap> In-Reply-To: <20220331082202.GZ12805@kadam> References: <20220331064751.29634-1-fmdefrancesco@gmail.com> <20220331082202.GZ12805@kadam> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 gioved? 31 marzo 2022 10:22:02 CEST Dan Carpenter wrote: > On Thu, Mar 31, 2022 at 08:47:51AM +0200, Fabio M. De Francesco wrote: > > There is no need for "struct dentry *eth_debugfs_dir" which is used for > > debug / sysfs directories. Therefore, remove this "struct dentry" and > > everything related (i.e., creation and removal). > > > > As a side effect of this change, the code has no more need of the > > "cleanup_register_netdev" label, which can also be removed. > > > > Suggested-by: Dan Carpenter > > Suggested-by: Greg Kroah-Hartman > > Signed-off-by: Fabio M. De Francesco > > --- > > > > v1 - v2: Add a couple of "Suggested-by" tags which were forgotten. > > Thanks to Dan Carpenter and Greg Kroah-Hartman. > > > > Thanks! > > Reviewed-by: Dan Carpenter > > regards, > dan carpenter > I've just noticed that visornic and visorhba do other calls to debugfs_create_dir() and debugfs_create_file() functions. I'm not sure whether or not this driver still needs those other calls. Do you think that they should be removed as well as it has been done in the patch above? Thanks, Fabio M. De Francesco