Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1253153pxb; Fri, 1 Apr 2022 08:27:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfTmN+h0g6pnn/g91Q3tyLL0TlRGG6srVRIezrQfTzDyl6w631QsFFT+sUQ1vuXkIxQLd5 X-Received: by 2002:a05:6402:2794:b0:419:2ea9:7de3 with SMTP id b20-20020a056402279400b004192ea97de3mr21539328ede.169.1648826833315; Fri, 01 Apr 2022 08:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648826833; cv=none; d=google.com; s=arc-20160816; b=mn/lXtaG0XkAh2UuDSUdylRZ/9ok4MU9SgLVOPRt3NJFRiZEdV2cRUWYnHMB7Ignof g6xCsRkNeoEQNx2bACVp9hj/iWt519M7dBcaU3KmuSKacMD6q057cxNZ2kDKubAKRbdl yfphCw4je54qnvbxX87eWAi0HNc7frlrxux5TL3cr5kjN3v++qrV2+ANjbYxROKE+B8o FYwRrI/Tk1AQprCeivxS1WY1eQ54TT1dyy7tjmPIac4e0You1fBCZ/AEupOyj2X2JpJ0 7rq5SrNq7p831mNOd0nvxm/Rd/TtjmLTYznigz7pLyn8EwzBXeg2DBbr8egplUYHpZ60 ZKAw== 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=j9a/vlLhMtR2/iPtSHRlPlACtXjzvG0CBaDOOzg7OUk=; b=r1HLRewKtVyNcYv1BD27jCyVXj0M5UN2bGFlEr7P0xMBz5sRt7fKuAFxu9q+reCi2x seqa/0d50ipTAwkoYjcOj9bmt6ghpMEQlAZjn+wv3PNWnILf3lnXEi+z7q1kDJeLg+uC +qEMoTMT6YTivNSiIsMvk20djf/+FjtIUjOlP0hZGDy8NcZMqCLa/Hq59CUeiXCn7Gnf Uju0o+qtvDVLVAlwg2mL3nOmR7nrPJbR0t57JgoZmcevqorThymKOTOZEP/8vcMxGKBu O+3XHNgTlJj1JDGkre2jPzx87tqawLsHsx85b4v+YQLYfiYiQJV2ltpfY6ga9p43fDlZ oYhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hgDBvIU4; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z20-20020a05640240d400b00418e6e7fea2si1927995edb.241.2022.04.01.08.26.47; Fri, 01 Apr 2022 08:27:13 -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=@linuxfoundation.org header.s=korg header.b=hgDBvIU4; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245259AbiDAGD2 (ORCPT + 99 others); Fri, 1 Apr 2022 02:03:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233051AbiDAGD0 (ORCPT ); Fri, 1 Apr 2022 02:03:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38D5E25EC9C for ; Thu, 31 Mar 2022 23:01:37 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 3B1F961B86 for ; Fri, 1 Apr 2022 06:01:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 425D8C2BBE4; Fri, 1 Apr 2022 06:01:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1648792896; bh=usiQ5/kmWskool16uoQNuX3zH9fqlkLk8OXUJrapyVs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hgDBvIU4HK7sNSbq7Es2681HocJZvVfc0diInnEolZ0o577aEhp56QPwNvlmJKHEO 0uXwiEaG1aIFcpFH/FnZM2z6CUYsNxMR8OirdyOoidTg/bIL3PA6wvUrobP+xQWci3 4vTuXwDt8myng+TKtmwZxbmwo0U8Rm/ffsOwCDqA= Date: Fri, 1 Apr 2022 08:01:34 +0200 From: Greg Kroah-Hartman To: "Fabio M. De Francesco" Cc: Dan Carpenter , 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" Message-ID: References: <20220331064751.29634-1-fmdefrancesco@gmail.com> <20220331082202.GZ12805@kadam> <5558288.DvuYhMxLoT@leap> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5558288.DvuYhMxLoT@leap> 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,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 Thu, Mar 31, 2022 at 06:58:58PM +0200, Fabio M. De Francesco wrote: > 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. It looks like those drivers create actual files in debugfs with information in them, so I would leave them alone. thanks, greg k-h