[PATCH v3 1/2] iommu/iova: Fix spelling mistakes
From: Zhen Lei <hidden>
Date: 2021-06-09 09:21:01
Also in:
linux-iommu, linux-mediatek, linux-sunxi
Subsystem:
iommu dma-api layer, iommu subsystem, the rest · Maintainers:
Robin Murphy, Joerg Roedel, Will Deacon, Linus Torvalds
Fix some spelling mistakes in comments found by "codespell": detroyed ==> destroyed defered ==> deferred entrie ==> entry alloced ==> allocated regularily ==> regularly Signed-off-by: Zhen Lei <redacted> --- drivers/iommu/iova.c | 2 +- include/linux/iova.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/iommu/iova.c b/drivers/iommu/iova.c
index b6cf5f16123b..cce4571548c4 100644
--- a/drivers/iommu/iova.c
+++ b/drivers/iommu/iova.c@@ -594,7 +594,7 @@ static void fq_destroy_all_entries(struct iova_domain *iovad) int cpu; /* - * This code runs when the iova_domain is being detroyed, so don't + * This code runs when the iova_domain is being destroyed, so don't * bother to free iovas, just call the entry_dtor on all remaining * entries. */
diff --git a/include/linux/iova.h b/include/linux/iova.h
index 71d8a2de6635..16f671b04a37 100644
--- a/include/linux/iova.h
+++ b/include/linux/iova.h@@ -49,12 +49,12 @@ typedef void (* iova_entry_dtor)(unsigned long data); /* Timeout (in ms) after which entries are flushed from the Flush-Queue */ #define IOVA_FQ_TIMEOUT 10 -/* Flush Queue entry for defered flushing */ +/* Flush Queue entry for deferred flushing */ struct iova_fq_entry { unsigned long iova_pfn; unsigned long pages; unsigned long data; - u64 counter; /* Flush counter when this entrie was added */ + u64 counter; /* Flush counter when this entry was added */ }; /* Per-CPU Flush Queue structure */
@@ -68,8 +68,8 @@ struct iova_fq { struct iova_domain { spinlock_t iova_rbtree_lock; /* Lock to protect update of rbtree */ struct rb_root rbroot; /* iova domain rbtree root */ - struct rb_node *cached_node; /* Save last alloced node */ - struct rb_node *cached32_node; /* Save last 32-bit alloced node */ + struct rb_node *cached_node; /* Save last allocated node */ + struct rb_node *cached32_node; /* Save last 32-bit allocated node */ unsigned long granule; /* pfn granularity for this domain */ unsigned long start_pfn; /* Lower limit for this domain */ unsigned long dma_32bit_pfn;
@@ -91,7 +91,7 @@ struct iova_domain { iova_entry_dtor entry_dtor; /* IOMMU driver specific destructor for iova entry */ - struct timer_list fq_timer; /* Timer to regularily empty the + struct timer_list fq_timer; /* Timer to regularly empty the flush-queues */ atomic_t fq_timer_on; /* 1 when timer is active, 0 when not */
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel