Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1177590imm; Tue, 5 Jun 2018 10:12:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKNPOl7+f6zxoQcDeZxWaUhDi28m2uB9fAVHVRGSSe4CkMVPP9kMR7nqSfTLVVYL4SyKwGQ X-Received: by 2002:a17:902:ba87:: with SMTP id k7-v6mr27452225pls.271.1528218773980; Tue, 05 Jun 2018 10:12:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528218773; cv=none; d=google.com; s=arc-20160816; b=hks/duIubhOe5k9Ej21K0JoIXig4G7CXs4ORhuWFwh2u3nY8a9gfysHhItMr7BsLZH EWmF6CliDDY/FHn2AN8Z6/VDPPserZx1p696e0VkQteDN6mSFVSB8LgHne+TRHOQQfoK YnYNyVwZc19JpJFNZN2qdknfQAl3n4Uq1QzwDyvtfF2tC64StaT52yMzGHNKtTJwSCdg 87Y+QPvdCoFdAD1yBMz5ZUtPMLe7MzKKU4Jgjvxj8E+PWGBbUGcz0ZCM2Xe24MmrVKli 2fYVeIMtPTU4samLp42QBHhX9+7cOSEZVaztNxXG3t31+a48huI6S+RI6TNQTQTBQeRa wFaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=nffz6UJvUybVXdu1fepYXbA7AkLCBDLLLrtlaWo5tF0=; b=0RPxfxs3zM+JH9B1nz1D/PJWzLxJNXXcIMAqwb8KR8M3PbS/OywUtUgtewx/XqjHEg aJq8HXd5+M7dDoJFDI3N82IoChjsVSf6iTsrOgl2dUHmxLVkEZPaDVx/2Ft/D+Qe+oDI CPbcT4ZZs6hCeYs+QqiAVSypn8+0DzV7wwEDTcmQWW3lSfcFfFjCnQNQmOh5ZDL/Bj42 ShjtokO2zeGR26f7bqpD7g/t89Xv2CRSt83Nos0itTyCggGOfohSf6f/zbMSRJ8nw2oE JeR9WH8G0V+uSv3/9lEDFzqX0KpCIcUhKINXJ7dESEcd8NHQEk4ibrj2MouJaQ9Op+DD JTQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=m7OIhSUn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a65-v6si22048434pfa.148.2018.06.05.10.12.40; Tue, 05 Jun 2018 10:12:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=m7OIhSUn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753953AbeFERJ7 (ORCPT + 99 others); Tue, 5 Jun 2018 13:09:59 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45961 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753752AbeFERJo (ORCPT ); Tue, 5 Jun 2018 13:09:44 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BC69421D26; Tue, 5 Jun 2018 13:09:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 05 Jun 2018 13:09:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=nffz6UJvUybVXdu1fepYXbA7AkLCB DLLLrtlaWo5tF0=; b=m7OIhSUnAxVEV+NbLDTfMW5JQy+vX5qah5vxqz5IvTT7M Hly1h8ylwuZ9Vsd9NHgfnLIPSPPHzdv3/lO+7YCHLZE9IfyhsrH05MGQxPzlVrOE C2+026l07H+bG3ky9pvk0A+ruW8J3qt/KYtFp/G9eTmjxml8UzUDN4cU3NFEZsPF G88OaqB+t++iX7IjqnP8rNiZzdz+bV3E87yTZWVBCZapv9jWTi1B7DpTR+e3IMoA 2H/AX6Gh82nbK1E1TaaMGmqtykDBfrbPtzKeUFg6ddHSXU8Uu1D/u2tLiN1wuK7i cPARsAYf37LwSNApzJPuOpPSG0ywVyrdplN4FEGuQ== X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from localhost (lfbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 3EB7FE4910; Tue, 5 Jun 2018 13:09:43 -0400 (EDT) Date: Tue, 5 Jun 2018 19:08:24 +0200 From: Greg KH To: Gary R Hook Cc: iommu@lists.linux-foundation.org, joro@8bytes.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 1/2] iommu - Enable debugfs exposure of IOMMU driver internals Message-ID: <20180605170824.GA11965@kroah.com> References: <152761784341.2654.8609366076331539902.stgit@sosgrh1.amd.com> <152761819480.2654.5371070582955429468.stgit@sosgrh1.amd.com> <20180529184101.GB10618@kroah.com> <3249cc11-09d8-2078-28a6-efd3078ca0e9@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3249cc11-09d8-2078-28a6-efd3078ca0e9@amd.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 05, 2018 at 12:01:41PM -0500, Gary R Hook wrote: > > > +/** > > > + * iommu_debugfs_new_driver_dir - create a vendor directory under debugfs/iommu > > > + * @vendor: name of the vendor-specific subdirectory to create > > > + * > > > + * This function is called by an IOMMU driver to create the top-level debugfs > > > + * directory for that driver. > > > + * > > > + * Return: upon success, a pointer to the dentry for the new directory. > > > + * NULL in case of failure. > > > + */ > > > +struct dentry *iommu_debugfs_new_driver_dir(const char *vendor) > > > +{ > > > + struct dentry *d_new; > > > + > > > + d_new = debugfs_create_dir(vendor, iommu_debugfs_dir); > > > + > > > + return d_new; > > > +} > > > +EXPORT_SYMBOL_GPL(iommu_debugfs_new_driver_dir); > > > > Why are you wrapping a debugfs call? Why not just export > > iommu_debugfs_dir instead? > > It was a choice, as I stated in my other post. It is not a requirement. > If you resolutely reject this approach, that's fine. I'll change it, no > worries. Either is fine, but if it stays, it should stay a single line function :) thanks, greg k-h