Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp555484imp; Wed, 20 Feb 2019 05:07:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IY9zgth8iofynoeSvtQWR/pT7beermr1UPLo1ZViv5dZoHm+kW9pyTiFaL3BTBrFWqAG0XD X-Received: by 2002:a17:902:e492:: with SMTP id cj18mr36860941plb.341.1550668038853; Wed, 20 Feb 2019 05:07:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550668038; cv=none; d=google.com; s=arc-20160816; b=l59Ts4xooaQopvYyxp9QCp6nU2artDYsp0apXUVUq+DE0+prdwwwKchLzA9j7YRJRr 6ahABq8mNe2tgTxObWGWxp1W+VnLjnN2l2YNOYHBfcW8PV0rks91DJhRbrzZ4gFhFUs9 fWsftha8ewOlMeRNbzZk98GtpU0coWfLJ1BjkqU5qakFfWE2dqK6TefivjZ0Di3T0vmB 1KQQPmWwl0wAip6kTibl4Ms0ZYDsHckuLaBAobIP/lCfUCyaGYwn0rDzF9RaXXFLWgDi D3dc+CBYEgPJmnzVp9nQCFtvWjkinEtymuseJnzShpUc6e4pxPu3cY9wHIgYv1l1+MBY dfnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=QKZvXVHAV0neyOjEAid2FWYXSQ7O9b7ro/5oNgVwsmg=; b=qCaPCDuVAHSt5deFcLOcxM3e6iQS0weWXq5fky1oCTr9Z4B20K1BI+AteQXFzSEJAQ UyoVeifRG5KILk8QmmzQobWrDupMAYmk9J2tbzprJj5fKFiyuGgGHqzghrMYTzVW8aH9 7PENSfW0Xz3+6etFVr0QhThSLAsRn5m0+qHsegBjuVeD6zRmTDuHCJnFLggEDKoqKK2m B71h5xyMFk9GrfzpzxjUfKs75D59ppb4WSj3dRP8XQ8P3hqXMpdoFMRAyWSQgSJnqivA IJqfmDCEGRAiX3Ow51HiKrg1f0kIXzGIjeTZwp45r2XZYlcePih9KLQQMNBh/xbViKV1 KYXg== ARC-Authentication-Results: i=1; mx.google.com; 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 x80si17314559pfe.224.2019.02.20.05.07.02; Wed, 20 Feb 2019 05:07:18 -0800 (PST) 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; 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 S1727828AbfBTNFW (ORCPT + 99 others); Wed, 20 Feb 2019 08:05:22 -0500 Received: from xavier.telenet-ops.be ([195.130.132.52]:35972 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726455AbfBTNFW (ORCPT ); Wed, 20 Feb 2019 08:05:22 -0500 Received: from ramsan ([84.194.111.163]) by xavier.telenet-ops.be with bizsmtp id f15K1z0073XaVaC0115Koi; Wed, 20 Feb 2019 14:05:19 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1gwRYt-0001UR-6k; Wed, 20 Feb 2019 14:05:19 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1gwRYt-0000K6-4f; Wed, 20 Feb 2019 14:05:19 +0100 From: Geert Uytterhoeven To: Joerg Roedel Cc: Gary R Hook , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] iommu: Fix IOMMU debugfs fallout Date: Wed, 20 Feb 2019 14:05:05 +0100 Message-Id: <20190220130505.1188-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A change made in the final version of IOMMU debugfs support replaced the public function iommu_debugfs_new_driver_dir() by the public dentry iommu_debugfs_dir in , but forgot to update both the implementation in iommu-debugfs.c, and the patch description. Fix this by exporting iommu_debugfs_dir, and removing the reference to and implementation of iommu_debugfs_new_driver_dir(). Fixes: bad614b24293ae46 ("iommu: Enable debugfs exposure of IOMMU driver internals") Signed-off-by: Geert Uytterhoeven --- drivers/iommu/iommu-debugfs.c | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/drivers/iommu/iommu-debugfs.c b/drivers/iommu/iommu-debugfs.c index 3b1bf88fd1b0494a..f0354894209648fd 100644 --- a/drivers/iommu/iommu-debugfs.c +++ b/drivers/iommu/iommu-debugfs.c @@ -12,6 +12,7 @@ #include struct dentry *iommu_debugfs_dir; +EXPORT_SYMBOL_GPL(iommu_debugfs_dir); /** * iommu_debugfs_setup - create the top-level iommu directory in debugfs @@ -23,9 +24,9 @@ struct dentry *iommu_debugfs_dir; * Emit a strong warning at boot time to indicate that this feature is * enabled. * - * This function is called from iommu_init; drivers may then call - * iommu_debugfs_new_driver_dir() to instantiate a vendor-specific - * directory to be used to expose internal data. + * This function is called from iommu_init; drivers may then use + * iommu_debugfs_dir to instantiate a vendor-specific directory to be used + * to expose internal data. */ void iommu_debugfs_setup(void) { @@ -48,19 +49,3 @@ void iommu_debugfs_setup(void) pr_warn("*************************************************************\n"); } } - -/** - * 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) -{ - return debugfs_create_dir(vendor, iommu_debugfs_dir); -} -EXPORT_SYMBOL_GPL(iommu_debugfs_new_driver_dir); -- 2.17.1