From: Manish Jaggi <mjaggi@caviumnetworks.com>
To: Xen Devel <xen-devel@lists.xen.org>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Julien Grall <julien.grall@linaro.org>,
Ian Campbell <Ian.Campbell@citrix.com>,
"Prasun.kapoor@cavium.com" <Prasun.kapoor@cavium.com>,
"Kumar, Vijaya" <Vijaya.Kumar@caviumnetworks.com>
Subject: [PATCH v1 1/3] xen/arm: smmu: Rename arm_smmu_xen_device with, device_iommu_info
Date: Fri, 27 Mar 2015 12:50:56 +0530 [thread overview]
Message-ID: <551504D8.1030102@caviumnetworks.com> (raw)
arm_smmu_xen_device is not an intuitive name for a datastructure which
represents
device->archdata.iommu. Rename arm_smmu_xen_device with device_iommu_info
Signed-off-by: Manish Jaggi <manish.jaggi@caviumnetworks.com>
---
xen/drivers/passthrough/arm/smmu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/xen/drivers/passthrough/arm/smmu.c
b/xen/drivers/passthrough/arm/smmu.c
index a7a7da9..ab4f7a4 100644
--- a/xen/drivers/passthrough/arm/smmu.c
+++ b/xen/drivers/passthrough/arm/smmu.c
@@ -247,12 +247,12 @@ struct arm_smmu_xen_domain {
* that would require to move some hackery (dummy iommu_group) in a
more generic
* place.
* */
-struct arm_smmu_xen_device {
+struct device_iommu_info {
struct iommu_domain *domain;
struct iommu_group *group;
};
-#define dev_archdata(dev) ((struct arm_smmu_xen_device
*)dev->archdata.iommu)
+#define dev_archdata(dev) ((struct device_iommu_info *)dev->archdata.iommu)
#define dev_iommu_domain(dev) (dev_archdata(dev)->domain)
#define dev_iommu_group(dev) (dev_archdata(dev)->group)
@@ -2574,7 +2574,7 @@ static int arm_smmu_assign_dev(struct domain *d,
u8 devfn,
xen_domain = domain_hvm_iommu(d)->arch.priv;
if (!dev->archdata.iommu) {
- dev->archdata.iommu = xzalloc(struct arm_smmu_xen_device);
+ dev->archdata.iommu = xzalloc(struct device_iommu_info);
if (!dev->archdata.iommu)
return -ENOMEM;
}
--
1.9.1
next reply other threads:[~2015-03-27 7:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-27 7:20 Manish Jaggi [this message]
2015-03-27 12:59 ` [PATCH v1 1/3] xen/arm: smmu: Rename arm_smmu_xen_device with, device_iommu_info Julien Grall
2015-03-27 13:21 ` Jaggi, Manish
2015-03-27 13:35 ` Julien Grall
2015-03-27 18:00 ` Jaggi, Manish
2015-04-06 10:45 ` Manish Jaggi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=551504D8.1030102@caviumnetworks.com \
--to=mjaggi@caviumnetworks.com \
--cc=Ian.Campbell@citrix.com \
--cc=Prasun.kapoor@cavium.com \
--cc=Vijaya.Kumar@caviumnetworks.com \
--cc=julien.grall@linaro.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.