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: Auger Eric X-Patchwork-Id: 61777 Delivered-To: patches@linaro.org Received: by 10.112.43.199 with SMTP id y7csp229471lbl; Thu, 11 Feb 2016 06:36:29 -0800 (PST) X-Received: by 10.28.90.133 with SMTP id o127mr19186343wmb.101.1455201341727; Thu, 11 Feb 2016 06:35:41 -0800 (PST) Return-Path: Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com. [2a00:1450:400c:c09::229]) by mx.google.com with ESMTPS id x20si12391392wjq.196.2016.02.11.06.35.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Feb 2016 06:35:41 -0800 (PST) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 2a00:1450:400c:c09::229 as permitted sender) client-ip=2a00:1450:400c:c09::229; Authentication-Results: mx.google.com; spf=pass (google.com: domain of eric.auger@linaro.org designates 2a00:1450:400c:c09::229 as permitted sender) smtp.mailfrom=eric.auger@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-wm0-x229.google.com with SMTP id p63so71014482wmp.1 for ; Thu, 11 Feb 2016 06:35:41 -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=HGsyzKTVwM3VX0pQcS9UyTf2SPGSM5yWrg8BH965bHO+oQhLI/iSfif/Mm/xgUvRAe gkI7kivrK50iGRzQdjf0otZ1ygb4OmcCStCS4/zzvYdvoARbE+gzhLjD6BBRf+N5IXur vjpVxdMhDguiPEdb0lZAZGzh51Kynpl4kEL+C0z0tJmOJrQ8zVuMA9zWAbFedpWLmT5G fSNPOnO/pgWZYInlWbtoLIF18zQRASEGsAZd/3fxYjygmf4YGr5HFZlGggEjMXECfGu5 xG9XOjSv+obE+a6+MAtSa/jqwUKTsu37qiIbn+VDQQww6h/VnqD685/A6Wgysjoejeyz ygWw== X-Gm-Message-State: AG10YOTM7+EAglHOOS+5A7x0VRoPkfNroMwn8ZHhYMW5ayHy673YpwlotRbXdbAap/v8iIvpsXQ= X-Received: by 10.194.203.99 with SMTP id kp3mr46961955wjc.3.1455201341554; Thu, 11 Feb 2016 06:35:41 -0800 (PST) Return-Path: 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 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, sherry.hurwitz@amd.com, brijesh.singh@amd.com, leo.duran@amd.com, Thomas.Lendacky@amd.com 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> 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(+) -- 1.9.1 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 */