Patch "iommu/riscv: Fixup compile warning" has been added to the 6.13-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    iommu/riscv: Fixup compile warning

to the 6.13-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     iommu-riscv-fixup-compile-warning.patch
and it can be found in the queue-6.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e8f2b8ef1b381cbdd1b0e68b1c0ee90a06354f18
Author: Guo Ren <guoren@xxxxxxxxxx>
Date:   Thu Jan 2 21:46:16 2025 -0500

    iommu/riscv: Fixup compile warning
    
    [ Upstream commit 10c62c38b073ecea775b7e23fa7c7a3995a84ff3 ]
    
    When __BITS_PER_LONG == 32, size_t is defined as unsigned int rather
    than unsigned long. Therefore, we should use size_t to avoid
    type-checking errors.
    
    Fixes: 488ffbf18171 ("iommu/riscv: Paging domain support")
    Signed-off-by: Guo Ren <guoren@xxxxxxxxxxxxxxxxx>
    Signed-off-by: Guo Ren <guoren@xxxxxxxxxx>
    Cc: Tomasz Jeznach <tjeznach@xxxxxxxxxxxx>
    Reviewed-by: Charlie Jenkins <charlie@xxxxxxxxxxxx>
    Reviewed-by: Tomasz Jeznach <tjeznach@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20250103024616.3359159-1-guoren@xxxxxxxxxx
    Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/iommu/riscv/iommu.c b/drivers/iommu/riscv/iommu.c
index 8a05def774bdb..38d381164385a 100644
--- a/drivers/iommu/riscv/iommu.c
+++ b/drivers/iommu/riscv/iommu.c
@@ -1270,7 +1270,7 @@ static phys_addr_t riscv_iommu_iova_to_phys(struct iommu_domain *iommu_domain,
 					    dma_addr_t iova)
 {
 	struct riscv_iommu_domain *domain = iommu_domain_to_riscv(iommu_domain);
-	unsigned long pte_size;
+	size_t pte_size;
 	unsigned long *ptr;
 
 	ptr = riscv_iommu_pte_fetch(domain, iova, &pte_size);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux