From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8B52EBF; Fri, 1 Apr 2022 06:01:36 +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> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5558288.DvuYhMxLoT@leap> 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