From patchwork Thu Feb 11 14:34:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Auger X-Patchwork-Id: 8281271 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AE2AF9F6DA for ; Thu, 11 Feb 2016 14:44:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF7342035D for ; Thu, 11 Feb 2016 14:44:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EFB5420222 for ; Thu, 11 Feb 2016 14:44:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aTsRv-0003p0-Eu; Thu, 11 Feb 2016 14:42:27 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aTsLj-0004rX-9u for linux-arm-kernel@lists.infradead.org; Thu, 11 Feb 2016 14:36:05 +0000 Received: by mail-wm0-x233.google.com with SMTP id g62so23927783wme.0 for ; Thu, 11 Feb 2016 06:35:42 -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=YztbtyviWk7NMFQZUM4KMX+5C//xsAu1n/d4ja7nnwc=; b=IU496HAp/CZPsTxNDDKrci/ISABy82qk49DgVrji2VASElBzJ5kq+MgenePCGqPHYh D8hmeI/sAojCcYybF70C3LdkWqU/aCsS+2rUFf6AI5VJIExZPWpCXIsCMsI3guFnaly9 7amTzmgFu12vkYWCWsAB2QoG0h5E3KcZbhjz8= 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=YztbtyviWk7NMFQZUM4KMX+5C//xsAu1n/d4ja7nnwc=; b=CS1R42CWuN0JsyHVN2tBBzjRz+dvnsz6hvrfCyPzFHGcyUGDCBqNe9fhWoyqqxd+xo HeSMe5Uw39TSDoTaN00rtq1+W7NyAj6qzln9gv9UQzVzLasroAQ2Epp5t1+Hn0ufk4RU VFsaSHvmFrizuYgDCWO0wIdvjxtX/t23PHCy+g03EzvWk0EWetausQ0s8ZRLx8a+nOCM kQKzbSGre5XXXCrxEbHQaggzkd0YycjdHprXHVn/1zW3BYcTUgCuf/CFD62mDgnywpnP 6vH3STZ/Zzve3wjoO36fGRd17/+ItE8Uss2ZfEgFGJZj+xQXN/f2+OIv0asBTIWwbMjt OWog== X-Gm-Message-State: AG10YORr24NQ/8lCsX0imuTqOs96k3CacEqA4HnQTNQjKqHm2KCE8ZInHRqSGu3+104iEzUl X-Received: by 10.194.203.99 with SMTP id kp3mr46961955wjc.3.1455201341554; Thu, 11 Feb 2016 06:35:41 -0800 (PST) Received: from new-host-12.home (LMontsouris-657-1-37-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by smtp.gmail.com with ESMTPSA id t205sm8290751wmt.23.2016.02.11.06.35.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Feb 2016 06:35:39 -0800 (PST) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, 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 Subject: [RFC v2 12/15] msi: export msi_get_domain_info Date: Thu, 11 Feb 2016 14:34:19 +0000 Message-Id: <1455201262-5259-13-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455201262-5259-1-git-send-email-eric.auger@linaro.org> References: <1455201262-5259-1-git-send-email-eric.auger@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160211_063603_719543_1CEBA6E6 X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas.Lendacky@amd.com, brijesh.singh@amd.com, patches@linaro.org, Manish.Jaggi@caviumnetworks.com, p.fedin@samsung.com, linux-kernel@vger.kernel.org, Bharat.Bhushan@freescale.com, iommu@lists.linux-foundation.org, pranav.sawargaonkar@gmail.com, leo.duran@amd.com, suravee.suthikulpanit@amd.com, sherry.hurwitz@amd.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 --- include/linux/msi.h | 4 ++++ kernel/irq/msi.c | 1 + 2 files changed, 5 insertions(+) diff --git a/include/linux/msi.h b/include/linux/msi.h index 03eda72..df19315 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h @@ -323,6 +323,10 @@ static inline struct irq_domain *pci_msi_get_device_domain(struct pci_dev *pdev) { return NULL; } +static struct msi_domain_info *msi_get_domain_info(struct irq_domain *domain) +{ + return NULL; +} #endif /* CONFIG_PCI_MSI_IRQ_DOMAIN */ #endif /* LINUX_MSI_H */ 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 */