From: Eric Auger <eric.auger@redhat.com>
To: Jason Gunthorpe <jgg@nvidia.com>, iommu@lists.linux.dev
Cc: Binbin Wu <binbin.wu@linux.intel.com>,
Kevin Tian <kevin.tian@intel.com>,
Lixiao Yang <lixiao.yang@intel.com>,
Matthew Rosato <mjrosato@linux.ibm.com>,
Nicolin Chen <nicolinc@nvidia.com>, Yi Liu <yi.l.liu@intel.com>
Subject: Re: [PATCH 1/3] iommufd: Fix comment typos
Date: Thu, 8 Dec 2022 15:08:50 +0100 [thread overview]
Message-ID: <9a335ea4-d20e-e011-2620-898dbfaf7d06@redhat.com> (raw)
In-Reply-To: <1-v1-0362a1a1c034+98-iommufd_fixes1_jgg@nvidia.com>
On 12/7/22 21:44, Jason Gunthorpe wrote:
> Repair some typos in comments that were noticed late in the review
> cycle.
>
> Fixes: f394576eb11d ("iommufd: PFN handling for iopt_pages")
> Reported-by: Binbin Wu <binbin.wu@linux.intel.com>
> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Eric
> ---
> drivers/iommu/iommufd/io_pagetable.h | 2 +-
> drivers/iommu/iommufd/pages.c | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/iommu/iommufd/io_pagetable.h b/drivers/iommu/iommufd/io_pagetable.h
> index 83e7c175f2a277..0ec3509b7e3392 100644
> --- a/drivers/iommu/iommufd/io_pagetable.h
> +++ b/drivers/iommu/iommufd/io_pagetable.h
> @@ -33,7 +33,7 @@ struct iommu_domain;
> *
> * The io_pagetable::iova_rwsem protects node
> * The iopt_pages::mutex protects pages_node
> - * iopt and immu_prot are immutable
> + * iopt and iommu_prot are immutable
> * The pages::mutex protects num_accesses
> */
> struct iopt_area {
> diff --git a/drivers/iommu/iommufd/pages.c b/drivers/iommu/iommufd/pages.c
> index 429fa3b0a239cd..fccdba782cb699 100644
> --- a/drivers/iommu/iommufd/pages.c
> +++ b/drivers/iommu/iommufd/pages.c
> @@ -342,7 +342,7 @@ static void batch_destroy(struct pfn_batch *batch, void *backup)
> kfree(batch->pfns);
> }
>
> -/* true if the pfn could be added, false otherwise */
> +/* true if the pfn was added, false otherwise */
> static bool batch_add_pfn(struct pfn_batch *batch, unsigned long pfn)
> {
> const unsigned int MAX_NPFNS = type_max(typeof(*batch->npfns));
> @@ -418,7 +418,7 @@ static struct page **raw_pages_from_domain(struct iommu_domain *domain,
> return out_pages;
> }
>
> -/* Continues reading a domain until we reach a discontiguity in the pfns. */
> +/* Continues reading a domain until we reach a discontinuity in the pfns. */
> static void batch_from_domain_continue(struct pfn_batch *batch,
> struct iommu_domain *domain,
> struct iopt_area *area,
next prev parent reply other threads:[~2022-12-08 14:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-07 20:44 [PATCH 0/3] iommufd review updates Jason Gunthorpe
2022-12-07 20:44 ` [PATCH 1/3] iommufd: Fix comment typos Jason Gunthorpe
2022-12-08 4:26 ` Tian, Kevin
2022-12-08 14:08 ` Eric Auger [this message]
2022-12-07 20:44 ` [PATCH 2/3] iommufd: Improve a few unclear bits of code Jason Gunthorpe
2022-12-08 4:32 ` Tian, Kevin
2022-12-08 14:08 ` Eric Auger
2022-12-07 20:44 ` [PATCH 3/3] iommufd: Change the order of MSI setup Jason Gunthorpe
2022-12-08 6:06 ` Tian, Kevin
2022-12-08 12:22 ` Jason Gunthorpe
2022-12-08 14:18 ` Eric Auger
2022-12-08 14:35 ` Jason Gunthorpe
2022-12-08 15:02 ` Eric Auger
2022-12-09 19:27 ` [PATCH 0/3] iommufd review updates Jason Gunthorpe
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=9a335ea4-d20e-e011-2620-898dbfaf7d06@redhat.com \
--to=eric.auger@redhat.com \
--cc=binbin.wu@linux.intel.com \
--cc=iommu@lists.linux.dev \
--cc=jgg@nvidia.com \
--cc=kevin.tian@intel.com \
--cc=lixiao.yang@intel.com \
--cc=mjrosato@linux.ibm.com \
--cc=nicolinc@nvidia.com \
--cc=yi.l.liu@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox