From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58652C388F9 for ; Wed, 4 Nov 2020 15:00:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D9FB20867 for ; Wed, 4 Nov 2020 15:00:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730505AbgKDPAo (ORCPT ); Wed, 4 Nov 2020 10:00:44 -0500 Received: from mga18.intel.com ([134.134.136.126]:53568 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbgKDPAn (ORCPT ); Wed, 4 Nov 2020 10:00:43 -0500 IronPort-SDR: 1LZgxxVIFn7y86NTfOnmfAXzi4emzNJwc5Esyubs098QdNOcpBy34eLYjAFUKGXHR4erSvh/Nx BQ6Rzj+/rQYg== X-IronPort-AV: E=McAfee;i="6000,8403,9794"; a="157001165" X-IronPort-AV: E=Sophos;i="5.77,451,1596524400"; d="scan'208";a="157001165" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 07:00:22 -0800 IronPort-SDR: bFDFZC4z0VPm9yhcNjj/tvhdZwZeSRDAi0X6ghMbKaO1q7SFNKqhaYMcwGPhrejDVtU1LaBdyg aBBoOP0v/VoA== X-IronPort-AV: E=Sophos;i="5.77,451,1596524400"; d="scan'208";a="353854707" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 07:00:19 -0800 Received: by lahna (sSMTP sendmail emulation); Wed, 04 Nov 2020 16:58:07 +0200 Date: Wed, 4 Nov 2020 16:58:07 +0200 From: Mika Westerberg To: Greg KH Cc: linux-usb@vger.kernel.org, Michael Jamet , Yehezkel Bernat , Andreas Noever , Isaac Hazan , Lukas Wunner , "David S . Miller" , netdev@vger.kernel.org Subject: Re: [PATCH 06/10] thunderbolt: Create debugfs directory automatically for services Message-ID: <20201104145807.GP2495@lahna.fi.intel.com> References: <20201104140030.6853-1-mika.westerberg@linux.intel.com> <20201104140030.6853-7-mika.westerberg@linux.intel.com> <20201104142038.GA2201525@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201104142038.GA2201525@kroah.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Wed, Nov 04, 2020 at 03:20:38PM +0100, Greg KH wrote: > > +/** > > + * tb_service_debugfs_remove() - Remove service debugfs directory > > + * @svc: Thunderbolt service pointer > > + * > > + * Removes the previously created debugfs directory for @svc. > > + */ > > +void tb_service_debugfs_remove(struct tb_service *svc) > > +{ > > + debugfs_remove(svc->debugfs_dir); > > debugfs_remove_recursive() just to be safe that you really did clean > everything up? As you aren't "owning" this directory here, you don't > know what will get added by some other patch :) Good point. I'll change it to debugfs_remove_recursive(). > Other than that tiny nit, this series looks good to me, nice work. Thanks!