[PATCH] intel_iommu: Fix typo in comments

Cai Huoqing posted 1 patch 2 years, 9 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210730014942.2311-1-caihuoqing@baidu.com
Maintainers: Peter Xu <peterx@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Jason Wang <jasowang@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>
hw/i386/intel_iommu.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
[PATCH] intel_iommu: Fix typo in comments
Posted by Cai Huoqing 2 years, 9 months ago
Fix typo:
*Unknwon  ==> Unknown
*futher  ==> further
*configed  ==> configured

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
---
 hw/i386/intel_iommu.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index 209b3f5553..75f075547f 100644
--- a/hw/i386/intel_iommu.c
+++ b/hw/i386/intel_iommu.c
@@ -679,7 +679,7 @@ static inline bool vtd_pe_type_check(X86IOMMUState *x86_iommu,
         }
         break;
     default:
-        /* Unknwon type */
+        /* Unknown type */
         return false;
     }
     return true;
@@ -692,7 +692,7 @@ static inline bool vtd_pdire_present(VTDPASIDDirEntry *pdire)
 
 /**
  * Caller of this function should check present bit if wants
- * to use pdir entry for futher usage except for fpd bit check.
+ * to use pdir entry for further usage except for fpd bit check.
  */
 static int vtd_get_pdire_from_pdir_table(dma_addr_t pasid_dir_base,
                                          uint32_t pasid,
@@ -746,7 +746,7 @@ static int vtd_get_pe_in_pasid_leaf_table(IntelIOMMUState *s,
 
 /**
  * Caller of this function should check present bit if wants
- * to use pasid entry for futher usage except for fpd bit check.
+ * to use pasid entry for further usage except for fpd bit check.
  */
 static int vtd_get_pe_from_pdire(IntelIOMMUState *s,
                                  uint32_t pasid,
@@ -1507,7 +1507,7 @@ static int vtd_sync_shadow_page_table(VTDAddressSpace *vtd_as)
 }
 
 /*
- * Check if specific device is configed to bypass address
+ * Check if specific device is configured to bypass address
  * translation for DMA requests. In Scalable Mode, bypass
  * 1st-level translation or 2nd-level translation, it depends
  * on PGTT setting.
-- 
2.25.1


Re: [PATCH] intel_iommu: Fix typo in comments
Posted by Philippe Mathieu-Daudé 2 years, 9 months ago
On 7/30/21 3:49 AM, Cai Huoqing wrote:
> Fix typo:
> *Unknwon  ==> Unknown
> *futher  ==> further
> *configed  ==> configured
> 
> Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
> ---
>  hw/i386/intel_iommu.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>


Re: [PATCH] intel_iommu: Fix typo in comments
Posted by Laurent Vivier 2 years, 7 months ago
Le 30/07/2021 à 15:27, Philippe Mathieu-Daudé a écrit :
> On 7/30/21 3:49 AM, Cai Huoqing wrote:
>> Fix typo:
>> *Unknwon  ==> Unknown
>> *futher  ==> further
>> *configed  ==> configured
>>
>> Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
>> ---
>>  hw/i386/intel_iommu.c | 8 ++++----
>>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> 
> 
Applied to my trivial-patches branch.

Thanks,
Laurent

Re: [PATCH] intel_iommu: Fix typo in comments
Posted by Peter Xu 2 years, 9 months ago
On Fri, Jul 30, 2021 at 09:49:42AM +0800, Cai Huoqing wrote:
> Fix typo:
> *Unknwon  ==> Unknown
> *futher  ==> further
> *configed  ==> configured
> 
> Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>

Acked-by: Peter Xu <peterx@redhat.com>

-- 
Peter Xu