From patchwork Thu Dec 19 12:03:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 182104 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp385148iln; Thu, 19 Dec 2019 04:04:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwSTB9U2zB4AVQmwrbcGgK0B/+WVb/xmqqDCv+WAYB6HmxGC3lYLcV8rzZwhCe00zVVUCKk X-Received: by 2002:a05:6830:13d9:: with SMTP id e25mr8204098otq.134.1576757057653; Thu, 19 Dec 2019 04:04:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576757057; cv=none; d=google.com; s=arc-20160816; b=1AtA3fGBqNi1m2Y6rUamPvvNRnGS/gpePJ0l32Vg6FYO4M1vMfXqCjLR7xUxgtWTQB wUjcRcJkOO5BnPNGGchTTalYGVP/mGb4JbiAdDcddjJfPLTHlht7KWKDwuEp60w1jFp7 Qwzx3tNOrqYP2pkNTw0e4uTblRxoq1XU9yrm78/IfCp2c8JiRAQjdtBpEHzQ4C0z1mwn pP2zDVAWEL9+tEv+rUhBDXjVC4f09WhopDSJ4JB695sZXK1k8NRWr+s6KuSwzPHYCAe+ tEGKaEcquYjAVYgjO+v/elNIeVOwGduOy2EF2WC8J7S8SCuajNND9U+VfAfoBg6uZBcD MS0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1lxcZxxDkk01CdzGsxJB7Z4zKainAK3GMEGaV86Dqm4=; b=hI8xoY1JFuVoS/l8B8Ux5XukzlND2ZJax4ynxpClJd9phHnWGzbK6bVJiFvbGzlO6/ lmuyzXuCFIF9dLSSIqrnUWlStHOrpwLBHBcHpubXFJdOwRLQHwUh5ocKKncgCjaT1MFA kpTWq0quLJmsc5mZM37pUgj5EMceNy6DbxctHQpC1UZUoEp8c9E7e8xARuqNHJMapunM A4vNyYs8tqJsSf6RqOcJYLu/CVk7e21LR/ehNFruUqHI+udb0GME1Eg1TXqcSO3+GTlR 5ukAia8Z2j2Rfd98iCY6/Yy3iDFAFniuFtNPSLST/d1lvbZRpzRwbaQQ2U1LFUFmZKI/ hIpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="J751/wOR"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i26si3233078otl.29.2019.12.19.04.04.13; Thu, 19 Dec 2019 04:04:17 -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; dkim=pass header.i=@kernel.org header.s=default header.b="J751/wOR"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbfLSMEM (ORCPT + 27 others); Thu, 19 Dec 2019 07:04:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:35922 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726960AbfLSMEK (ORCPT ); Thu, 19 Dec 2019 07:04:10 -0500 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 01FB724683; Thu, 19 Dec 2019 12:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576757049; bh=+WTtqAFVopoXQZplgExaFV+agqrd+AIa7dTwWybSTC4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J751/wORuYIf/VyBBcqzUDOT1gqPqORGxyQUdPBzOPU0m5n9XO+WcQb08vZjupFzw 2YXK9CVR5ce6pwbRf9IiFrdYdga9JtJYNlBxcgoa/GRJe7bRCaIYZ/RnDqOa0Zx0N0 bTH2XhHL5l+/DYNi10C4WU/Pxao3lKvX32WD8dN4= From: Will Deacon To: linux-kernel@vger.kernel.org, iommu@lists.linuxfoundation.org Cc: kernel-team@android.com, Will Deacon , Jean-Philippe Brucker , Jordan Crouse , John Garry , Bjorn Helgaas , Saravana Kannan , Greg Kroah-Hartman , "Isaac J. Manjarres" , Robin Murphy , Lorenzo Pieralisi , Joerg Roedel , Ard Biesheuvel , Greg Kroah-Hartman , Joerg Roedel Subject: [PATCH v4 03/16] PCI/ATS: Restore EXPORT_SYMBOL_GPL() for pci_{enable, disable}_ats() Date: Thu, 19 Dec 2019 12:03:39 +0000 Message-Id: <20191219120352.382-4-will@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191219120352.382-1-will@kernel.org> References: <20191219120352.382-1-will@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman Commit d355bb209783 ("PCI/ATS: Remove unnecessary EXPORT_SYMBOL_GPL()") unexported a bunch of symbols from the PCI core since the only external users were non-modular IOMMU drivers. Although most of those symbols can remain private for now, 'pci_{enable,disable_ats()' is required for the ARM SMMUv3 driver to build as a module, otherwise we get a build failure as follows: | ERROR: "pci_enable_ats" [drivers/iommu/arm-smmu-v3.ko] undefined! | ERROR: "pci_disable_ats" [drivers/iommu/arm-smmu-v3.ko] undefined! Re-export these two functions so that the ARM SMMUv3 driver can be build as a module. Cc: Bjorn Helgaas Cc: Joerg Roedel Signed-off-by: Greg Kroah-Hartman [will: rewrote commit message] Signed-off-by: Will Deacon --- drivers/pci/ats.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.24.1.735.g03f4e72817-goog Acked-by: Bjorn Helgaas diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c index 982b46f0a54d..dcbcf1331bb2 100644 --- a/drivers/pci/ats.c +++ b/drivers/pci/ats.c @@ -69,6 +69,7 @@ int pci_enable_ats(struct pci_dev *dev, int ps) dev->ats_enabled = 1; return 0; } +EXPORT_SYMBOL_GPL(pci_enable_ats); /** * pci_disable_ats - disable the ATS capability @@ -87,6 +88,7 @@ void pci_disable_ats(struct pci_dev *dev) dev->ats_enabled = 0; } +EXPORT_SYMBOL_GPL(pci_disable_ats); void pci_restore_ats_state(struct pci_dev *dev) {