From: Julien Grall <julien.grall@linaro.org>
To: "Jaggi, Manish" <Manish.Jaggi@caviumnetworks.com>,
Xen Devel <xen-devel@lists.xen.org>,
"Prasun.kapoor@cavium.com" <Prasun.kapoor@cavium.com>,
"Kumar, Vijaya" <Vijaya.Kumar@caviumnetworks.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH v1 3/3] xen/arm: smmu: Renaming struct iommu_domain *domain to, struct iommu_domain *iommu_domain
Date: Fri, 27 Mar 2015 19:20:59 +0000 [thread overview]
Message-ID: <5515AD9B.6060403@linaro.org> (raw)
In-Reply-To: <1427479535775.96644@caviumnetworks.com>
On 27/03/2015 18:05, Jaggi, Manish wrote:
> From: Julien Grall <julien.grall@linaro.org>
> Sent: Friday, March 27, 2015 7:11 PM
> To: Jaggi, Manish; Xen Devel; Prasun.kapoor@cavium.com; Kumar, Vijaya; Ian Campbell; Stefano Stabellini
> Subject: Re: [PATCH v1 3/3] xen/arm: smmu: Renaming struct iommu_domain *domain to, struct iommu_domain *iommu_domain
>
> On 27/03/15 13:26, Jaggi, Manish wrote:
>> On 27/03/15 07:24, Manish Jaggi wrote:
>>> It is good for code readability as there are many structures ending with
>>> the name domain.
>>> Also a code like this one is now easy to understand with the rename
>>> old: dev_iommu_domain(dev) = domain;
>>> new: dev_iommu_domain(dev) = iommu_domain;
>> [manish] Did u see this line
>
> I don't care about the new vs old stuff. What I care is keeping the code
> as close as possible to the Linux code.
>
> [manish] then you are missing a point my friend. The line mentioned old is not at all intuitive and is confusing.
Please avoid familiarity... I'm not my friend and a such things will do
the inverse effect you are trying to reach.
> I am not proposing a design change. All I am asking to add a prefix to iommu_domain pointers as was already done for smmu_domain pointers.
I didn't talk about design change but code modification. If you change
the name of variables, it will require more work to backport a patch
from Linux because the patch won't apply cleanly.
I've spent quite a lots of time to change as little as possible the
Linux code and justify any change. You can see the different mail I had
with Ian & Stefano for this purpose.
IHMO, changing the code just for your own comprehension is not a valid
justification.
Regards,
--
Julien Grall
next prev parent reply other threads:[~2015-03-27 19:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-27 7:24 [PATCH v1 3/3] xen/arm: smmu: Renaming struct iommu_domain *domain to, struct iommu_domain *iommu_domain Manish Jaggi
2015-03-27 13:04 ` Julien Grall
2015-03-27 13:26 ` Jaggi, Manish
2015-03-27 13:41 ` Julien Grall
2015-03-27 18:05 ` Jaggi, Manish
2015-03-27 19:20 ` Julien Grall [this message]
2015-03-31 16:48 ` Stefano Stabellini
2015-04-01 8:30 ` Ian Campbell
2015-04-06 14:15 ` Julien Grall
2015-04-14 11:15 ` Ian Campbell
2015-04-14 11:46 ` Julien Grall
2015-04-14 12:24 ` Jaggi, Manish
2015-04-14 12:47 ` Julien Grall
2015-04-14 14:19 ` Ian Campbell
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=5515AD9B.6060403@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=Manish.Jaggi@caviumnetworks.com \
--cc=Prasun.kapoor@cavium.com \
--cc=Vijaya.Kumar@caviumnetworks.com \
--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.