From patchwork Tue Mar 1 18:27:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Auger X-Patchwork-Id: 8468651 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 66213C0553 for ; Tue, 1 Mar 2016 18:32:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8FA7920304 for ; Tue, 1 Mar 2016 18:32:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ADD3120115 for ; Tue, 1 Mar 2016 18:32:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753440AbcCAScV (ORCPT ); Tue, 1 Mar 2016 13:32:21 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:37474 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753062AbcCAS2q (ORCPT ); Tue, 1 Mar 2016 13:28:46 -0500 Received: by mail-wm0-f45.google.com with SMTP id p65so45945965wmp.0 for ; Tue, 01 Mar 2016 10:28:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/CIFk+Jnou8Zni39n6VB6+QPbKxdAYpkLAcP+OHxVaM=; b=R/UgGy6XqVSa9y9O7a4Ah4BP10OnOyj8EF9pbgocAbn9lvAihnFP2rml598HQppvWC XsHvRuaoeTPH/9BRQ5TMSqwRk4hGkgdsCrLYpDLxVPsR2hM8zecrD3fbhz0sVjdzjuwj CLDnNJNF+XRIpPPCxW6zNWF5+UwI3FYouK5vI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/CIFk+Jnou8Zni39n6VB6+QPbKxdAYpkLAcP+OHxVaM=; b=QuUSk3udjoDdA9i0e+iL52ityu3dGTAE0qnsrY/Lho0/GcGCZjbgGhWkNzMn/DwR81 0JrKOHp6XsQR/frG2+CfbRaUwGykO77scULlsJ/YG1PaB05jHzip/bZjsRlW9Eopxvbz CwESF/HxUL4CrR/eKyILgsBRkRY3CXYIEyXsl2XAw7qnq3gfw+tQVpSusucQZCqOCIg9 g0cSw6sY6LmhdrP2kECL38xXmi6uSGk/N+q3srGF6poPFfxW2a0xgw8rv+wzJl3DveAE AO/lp/vmY0GQg2g835O8pR1UT38eop0QSuMl/MjpPBh4PZIvuZg1fp3mgmAhHeU7ZnH5 yBYg== X-Gm-Message-State: AD7BkJK37ceD5u1f0nWpQs0+nxNc9nGa3bO5TZL/+S66ZkWH/vbioitQTOG5E99Y8gpaky6O X-Received: by 10.194.3.110 with SMTP id b14mr22267874wjb.116.1456856925015; Tue, 01 Mar 2016 10:28:45 -0800 (PST) Received: from new-host-8.home (LMontsouris-657-1-37-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by smtp.gmail.com with ESMTPSA id k8sm32176385wjr.38.2016.03.01.10.28.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Mar 2016 10:28:43 -0800 (PST) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, robin.murphy@arm.com, alex.williamson@redhat.com, will.deacon@arm.com, joro@8bytes.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, christoffer.dall@linaro.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Cc: suravee.suthikulpanit@amd.com, patches@linaro.org, linux-kernel@vger.kernel.org, Manish.Jaggi@caviumnetworks.com, Bharat.Bhushan@freescale.com, pranav.sawargaonkar@gmail.com, p.fedin@samsung.com, iommu@lists.linux-foundation.org Subject: [RFC v5 10/17] msi: export msi_get_domain_info Date: Tue, 1 Mar 2016 18:27:50 +0000 Message-Id: <1456856877-4817-11-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456856877-4817-1-git-send-email-eric.auger@linaro.org> References: <1456856877-4817-1-git-send-email-eric.auger@linaro.org> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We plan to use msi_get_domain_info in VFIO module so let's export it. Signed-off-by: Eric Auger --- v2 -> v3: - remove static implementation in case CONFIG_PCI_MSI_IRQ_DOMAIN is not set --- kernel/irq/msi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c index 38e89ce..9b0ba4a 100644 --- a/kernel/irq/msi.c +++ b/kernel/irq/msi.c @@ -400,5 +400,6 @@ struct msi_domain_info *msi_get_domain_info(struct irq_domain *domain) { return (struct msi_domain_info *)domain->host_data; } +EXPORT_SYMBOL_GPL(msi_get_domain_info); #endif /* CONFIG_GENERIC_MSI_IRQ_DOMAIN */