Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp520902rdb; Thu, 22 Feb 2024 10:37:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXkjleIYq79sQZAJtnxPFqeJA4Rc4AP49exEfVJy1aHj2APRzgmHFxbeycYDfd9wC9ZhOTfhegSK8QtIuR6b6NaBMeRX//LsXZAz0XGmQ== X-Google-Smtp-Source: AGHT+IH3g3DYUK4C/xva3uYVsedZJAk+zXzQAm3cMTy1Sof/Rhrzz7E2wpX2pvJzMamNd+uJOtck X-Received: by 2002:a17:906:793:b0:a3f:2703:1c6b with SMTP id l19-20020a170906079300b00a3f27031c6bmr4020926ejc.64.1708627033320; Thu, 22 Feb 2024 10:37:13 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qf37-20020a1709077f2500b00a3f91e8dae2si601755ejc.91.2024.02.22.10.37.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:37:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MAwqtGXb; arc=fail (signature failed); spf=pass (google.com: domain of linux-crypto+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E6B791F2343C for ; Thu, 22 Feb 2024 18:37:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 613EE6E616; Thu, 22 Feb 2024 18:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MAwqtGXb" X-Original-To: linux-crypto@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 644776E5E0; Thu, 22 Feb 2024 18:25:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.12 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708626328; cv=fail; b=nqGQWTuZw1EZ91nyU2G8fYe31HQIJPv0hNte5EH+z6pfGM0eiaLAZP/9/T5qU7hrJ/ZUiQaM1JTzqm/7unlJz6UZZ7YERCsdbJJcizkoOUxuL3boEGfQJYamTxmTyhzuFce0rCdg/IeWStl3nj2+EMlt4tmL/spjXAbNt3ykXO4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708626328; c=relaxed/simple; bh=8UUIspyAgn5j8fNakp1RxbdKJ5ATqjMjB+ggWGl7vn4=; h=Date:From:To:CC:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=oxwEjaGLWhLQCuka4s2sTZ7qYtQbHeFujyJtGrhzri3gqMYLfCsWyRvieCnRJXNQAcVFaFtTW9M2U89R9mJeAnkT1eeq95QeiSZy7nBrcXrU2fdUVYtEq7gKTXzqRVq2gVs/4IMbGdxN98WQTTbAT3sII/zvt3aJ/QH7fuuZHIE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MAwqtGXb; arc=fail smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708626326; x=1740162326; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=8UUIspyAgn5j8fNakp1RxbdKJ5ATqjMjB+ggWGl7vn4=; b=MAwqtGXbIOrHiPQ2/Hyjjvbxx9sMH7Qt3snId/PhDqVbJDqjzghFtz1R Ly2BHGKPT9EOe2DFNxZhWKmoW43tEHjYQlqEfkK4vVBmib2WXxaCB1/di NFjfunrD7nmFFG4R+v7/xEWdMvlFg71YwtXd+hC/GH3brQDnbqrZ6xAv2 hWTI9mKWAozuPVlm0SV1SK7X8yqnbe/ONVDcF1OOCC+T560xaQfWD9B/j oglR5eSvsjDXYXvVxNPa+DkKBPo3nyHK7d4D461njJMlRDIz8eTPPrR7F 82iKe80zpVj3ZA6w84bnxARj6NRPyb4ZkVcg9EAiNrQykyc7nBnTSw1sC Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="14296748" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="14296748" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 10:25:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="936886383" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="936886383" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga001.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 22 Feb 2024 10:25:23 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 22 Feb 2024 10:25:23 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 22 Feb 2024 10:25:23 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 22 Feb 2024 10:25:23 -0800 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.41) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 22 Feb 2024 10:25:22 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ecNKO6WblxC6ZQ450jjmI9GYqS3x5k71v2qMvswXvRnHBOa+BxG3fcR5WLQmHiQ185VaFWjW+ierELphwyB3yymd3LmeCiibMD6UJ4riJcNY++i+miNTJFLrOFMmSdlBjcrNitisUcVfhUVriTHlMQu7Xt2s9ht9ecu1xR/7fNYVHWIHs0fOP6y6EuWMew3Y9k4cnZ2RFNvgGx7H6/bPXeF2R3Q1dJyoZO/GhVdDCxevXikuT9ttmPRLKsAImOks0qV4rcmaS2RBaisIp8+kfUi5i1t1GhFjs3pacADvup1RJyHMph2w/q/OPny35tWD2v39dcMmaRKYKA94LtxiKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KjjJXsfMIkZY6ac5jHReYiUCFki8bbMyEcX5EkqI/LA=; b=aYV+FEtt9qDvrOwxrO1hac6NTuSgSG9gPO0d42Vp9aaJjw/qpeyDF4KzhW92tugsAM9VlRRnVEQV8HSMkq9NJj62CdRzF1QPAbH/mCrA+i6t5Bz15Z9d+uyLFfkFy05V7W+HAGv4D3VD2w+DmKMN6/faNjgUmCF6GPVnuSiNdihyfjx5sos6P9qUvz+SNp8waX//VD/cwXSFERJv3hdZYZbOk30EsX2BM+so8MnNYJc+6Ouaq7YnXmr0xtfXfXC1D53WLuwQPLX8rmxhJqvZ1jAuRPGQ1nMnfysw9XtXXGeP/o4VxNHddF/popDFkOHAwcHV2SE3Vd6Y6fPo+QHeSA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) by DS7PR11MB6104.namprd11.prod.outlook.com (2603:10b6:8:9f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.10; Thu, 22 Feb 2024 18:25:19 +0000 Received: from PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::da43:97f6:814c:4dc]) by PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::da43:97f6:814c:4dc%7]) with mapi id 15.20.7316.018; Thu, 22 Feb 2024 18:25:19 +0000 Date: Thu, 22 Feb 2024 10:25:15 -0800 From: Dan Williams To: Dan Williams , Dave Jiang , Marek =?iso-8859-1?Q?Beh=FAn?= , , Hans de Goede , "Matti Vaittinen" CC: Horia =?utf-8?Q?Geant=C4=83?= , Pankaj Gupta , Gaurav Jain , Herbert Xu , "David S. Miller" , Davidlohr Bueso , Jonathan Cameron , Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , Bamvor Jian Zhang , Linus Walleij , "Bartosz Golaszewski" , Douglas Anderson , Andrzej Hajda , Neil Armstrong , Robert Foss , "Laurent Pinchart" , Jonas Karlman , Jernej Skrabec , "Maarten Lankhorst" , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , James Seo , Jean Delvare , Guenter Roeck , , , , , Subject: Re: [PATCH 2/2] devm-helpers: Add resource managed version of debugfs directory create function Message-ID: <65d7918b358a5_1ee3129432@dwillia2-mobl3.amr.corp.intel.com.notmuch> References: <20240222145838.12916-1-kabel@kernel.org> <20240222145838.12916-2-kabel@kernel.org> <23c50406-7ebd-4cc3-a978-1b8a5fc71ff0@intel.com> <65d78e55844c1_1ee312946a@dwillia2-mobl3.amr.corp.intel.com.notmuch> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <65d78e55844c1_1ee312946a@dwillia2-mobl3.amr.corp.intel.com.notmuch> X-ClientProxiedBy: MW4PR03CA0182.namprd03.prod.outlook.com (2603:10b6:303:b8::7) To PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR11MB8107:EE_|DS7PR11MB6104:EE_ X-MS-Office365-Filtering-Correlation-Id: ebc1b1a1-73a9-4663-5eb9-08dc33d39fdd X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n9RfIVe3VG4RJrtlpl9uWvnhgxOGzAIDNQvakFnwzHFNoF4/bLBpjjqUUS10Z00bXIslUb2tj394bwbQQcPh9DJ2Cdb1AAF3SuasbJ39zQFOo9eeX8gP6Wb2qAgL9aLq+SZP7O8UKqeyVRwfWY6OHX9sWMmAcKHdcUcz97ICT6WMWz1O/B6Mu2uLpkSMZz2dIgPoj7t9NGKrLsUE2LwptFrQZ6lBGYWLZZqRpzQ8Ry3FxN9U3QbjwYu8Ilbrwj91RjpHRLBZ4vZuV3YneNzjWUl58n5dXqkT1XK3+a6UJulJV+E9qRY1InPvv06jMsHxe6rjx1LqIXv9gk5TWNrI4ai4gysJaDdEWWA0RngL35pkJ9OjFl4aCY61DinnYPovipslgldVB+MIpY9TGsCiTr3vty9j2gT21coawzLhU8lkGLJrmhL8y6+SvgHayYsQM3l4o1KOEuQgzPTaN/9k95kWwRxCC24UcF+nvwsPZ8f2of4terE1nX8uk7Dmo4yB3g5JKr2AbhzrVTto9dReXFtqswMA+/I03ck9bsPMkPI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH8PR11MB8107.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?jc0CMwJ+viTns2sPchYhwb5l9f+KZ86qER28p6uC4ri9MI9D5A1f/TJ+hy?= =?iso-8859-1?Q?HE+oKNMqqWUVg4ZKjKa4QJY08Nc9xZCzoXcsUV6Vs3bINxO61hR227vMFL?= =?iso-8859-1?Q?G75foFHovO5TMcRC1YB+zPolu9f/xjFy087OjjTWG/GRcaEQO+saCZkNgX?= =?iso-8859-1?Q?oOcWgSEVWFP9mruRDvx+8jmJ/Vum7rtXX4hQgptNdw9qtxbz3OP+aZf88g?= =?iso-8859-1?Q?2Dz/LJ81sz/LtXziAz2iElkSGf9AQ7QkTa20IKvuvCn1ikxtSDrdxUmzj+?= =?iso-8859-1?Q?MkXOZIXtSerg/0/RVMCYxY7cHfgn1BQqXdvVZf7GLHFxbYf+69HU2mM2uJ?= =?iso-8859-1?Q?6w1bPg46dq3gJhmHyXjZiahEG9wJnLYehkhH7VD6dGtF6WIdJRKbTr0fVD?= =?iso-8859-1?Q?MPaC6pezJTuumJd80XKVEUqVarFgQm8D1NFVTXyepteewgHZztqh+QeVJF?= =?iso-8859-1?Q?3jPjYVTF59PBDcqNqfvDlMXqDf2hxGhsLs40rgUQ/PuDqF7KTWjASn+BJJ?= =?iso-8859-1?Q?qIgpmqDRf/m2f7Egr9zZEi9z6BxWi/fVKBB4BhDr7EzaISrTNyd68uDK8x?= =?iso-8859-1?Q?MfG9cSwKF3v9BqiXu0qVjoq6PvbfKUKl8ffLA+s5ss13exPNCuUE2wqUrW?= =?iso-8859-1?Q?LZXocgJ6KSKDd9cSJjzDxSXF4AeZulU10JaFnGQHTb9+O+5SlwmqtPzwj1?= =?iso-8859-1?Q?BXD44iXqfN0hqDEu6TKiqibaZ1ZUb5YSFmf8CJN1y2zMq92C/KdcjjKC4w?= =?iso-8859-1?Q?PNtjRd+XvUUe0r/lYdfILS+lRsnUgGyBNo+XIz4ZmpJvLDHPBtorgC2lFu?= =?iso-8859-1?Q?XN8WHv738r8crxxM2Q78x2915CR4oS0Vzxa45CPVUD2HXUl9isk/0hAett?= =?iso-8859-1?Q?ZhNotQWg+BQf9ppJuliwckrUnBZfVwlIOkevKIMdb+R+3vRoG1LkJqHLNS?= =?iso-8859-1?Q?T2QxZN0Np7cEbt0PYnZqj7Xh/vWxr1FkRfJe1C7El83mZMuVr2k3wZp71Z?= =?iso-8859-1?Q?acUJuvo46qKV+D92xmbw6VsXoo7SaFebOkKdmGi+bs+FBy1xVCfB+VL/6R?= =?iso-8859-1?Q?UsqdAQDvmXPIHULWObode34RWL0wfNSdoKXthD29hEVms/F/z42+W5UzkK?= =?iso-8859-1?Q?ZAioeN6NyHElJS3dBJagWq3KOWOKKCVuJSkZXnBcu6Ahb9cpfUZAyYZytz?= =?iso-8859-1?Q?DPpx8xmR2rmJ6sHTMmvDoZduwqeGwyQGmHHk8dollkXC1aPkTI2+3g4kdc?= =?iso-8859-1?Q?o00ozapbKZyM61UIN5tbDGhV1BFCLuwICh75nxPWqvpl3J8+FPjHt79I8s?= =?iso-8859-1?Q?WQDJvkSflS9HiAZwfQDHHHEOy3ECKRasBowHZMBxTqbrCms4ZoBT7lCrMR?= =?iso-8859-1?Q?HJpRONd7ippNFV7l/TFSoEkGbMPlV+fP0IAxsXmpaLGMtYqJ9isudaRd0G?= =?iso-8859-1?Q?eI23RFGoqPFxpcXq+86MYYk8ibL8Cr3Lq1miwqWhOOj0RWwRJURh4hPnIL?= =?iso-8859-1?Q?BXIBdJSZkfy6hTwpz2kiBzK6EHmsJjs0h8PAFu4u1MEjM/rSTGPcKtAF1r?= =?iso-8859-1?Q?Ialx03UgzVhFXp/o15MDue3XB8cgmbPgoxX2XDhVgLDIdvsnVBI7adDNXu?= =?iso-8859-1?Q?Kg8D3hyEOO/5eTHlwpT/cc/OBq9dSLGEKHyDTwOOAuAmUEXPOkG5hHWQ?= =?iso-8859-1?Q?=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: ebc1b1a1-73a9-4663-5eb9-08dc33d39fdd X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB8107.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2024 18:25:19.4517 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uYig7fF1jS41Pb9D8C+d1C0dFe4oyfod4zlkmGHfmSzRd9zod1kX2UECHpt76B4AAPfj0wSjrE8uWxozfB9x+HmnMwDqZo9hlPc/qzuM2vs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6104 X-OriginatorOrg: intel.com Dan Williams wrote: > Dave Jiang wrote: > > > > > > On 2/22/24 7:58 AM, Marek Beh?n wrote: > > > A few drivers register a devm action to remove a debugfs directory, > > > implementing a one-liner function that calls debufs_remove_recursive(). > > > Help drivers avoid this repeated implementations by adding managed > > > version of debugfs directory create function. > > > > > > Use the new function devm_debugfs_create_dir() in the following > > > drivers: > > > drivers/crypto/caam/ctrl.c > > > drivers/gpu/drm/bridge/ti-sn65dsi86.c > > > drivers/hwmon/hp-wmi-sensors.c > > > drivers/hwmon/mr75203.c > > > drivers/hwmon/pmbus/pmbus_core.c > > > > > > Also use the action function devm_debugfs_dir_recursive_drop() in > > > drivers > > > drivers/cxl/mem.c > > > drivers/gpio/gpio-mockup.c > > > > > > Signed-off-by: Marek Beh?n > > > --- > > > drivers/crypto/caam/ctrl.c | 16 +++------ > > > drivers/cxl/mem.c | 9 ++--- > > > drivers/gpio/gpio-mockup.c | 11 ++---- > > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 13 ++------ > > > drivers/hwmon/hp-wmi-sensors.c | 15 ++------- > > > drivers/hwmon/mr75203.c | 15 +++------ > > > drivers/hwmon/pmbus/pmbus_core.c | 16 +++------ > > > include/linux/devm-helpers.h | 48 +++++++++++++++++++++++++++ > > > 8 files changed, 72 insertions(+), 71 deletions(-) > > > [..] > > diff --git a/drivers/cxl/cxlmem.h b/drivers/cxl/cxlmem.h > > index 5303d6942b88..b6f13ba87927 100644 > > --- a/drivers/cxl/cxlmem.h > > +++ b/drivers/cxl/cxlmem.h > > @@ -859,6 +859,5 @@ struct cxl_hdm { > > }; > > > > struct seq_file; > > -struct dentry *cxl_debugfs_create_dir(const char *dir); > > void cxl_dpa_debug(struct seq_file *file, struct cxl_dev_state *cxlds); > > #endif /* __CXL_MEM_H__ */ > > diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c > > index c5c9d8e0d88d..494abe7a54c5 100644 > > --- a/drivers/cxl/mem.c > > +++ b/drivers/cxl/mem.c > > @@ -4,6 +4,7 @@ > > #include > > #include > > #include > > +#include > > > > #include "cxlmem.h" > > #include "cxlpci.h" > > @@ -30,11 +31,6 @@ static void enable_suspend(void *data) > > cxl_mem_active_dec(); > > } > > > > -static void remove_debugfs(void *dentry) > > -{ > > - debugfs_remove_recursive(dentry); > > -} > > - > > static int cxl_mem_dpa_show(struct seq_file *file, void *data) > > { > > struct device *dev = file->private; > > @@ -128,7 +124,10 @@ static int cxl_mem_probe(struct device *dev) > > if (work_pending(&cxlmd->detach_work)) > > return -EBUSY; > > > > - dentry = cxl_debugfs_create_dir(dev_name(dev)); > > + dentry = devm_debugfs_create_dir(dev, dev_name(dev), NULL); > > + if (IS_ERR(dentry)) > > + return PTR_ERR(dentry); > > + > > No that loses the "cxl" prefix. So, to be clear, I do see the benefit of removing the devm_add_action_or_reset() call altogether, but that work is a bit deeper and should not be tied with all these other cleanups. So I think from the CXL perspective, please drop these CXL changes out of this patch. Follow up with a standalone patch, or leave it to drivers/cxl/ folks to create that deeper cleanup.