iommu/io-pgtalbe-arm: Remove "iopte_type(pte, l)" extra parameter "l"
Subsystems (2)
PATCH 1/1 iommu/io-pgtalbe-arm: Remove "iopte_type(pte, l)" extra parameter "l"
Knowing from the code, the macro "iopte_type(pte, l)" doesn't use the parameter "l" (level). So we'd better to remove it.
--- drivers/iommu/io-pgtable-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/io-pgtable-arm.c +1 -1
@@ -130,7 +130,7 @@/* IOPTE accessors */ #define iopte_deref (pte,d) __va(iopte_to_paddr(pte, d)) -#define iopte_type (pte,l) \ +#define iopte_type (pte) \ (((pte) >> ARM_LPAE_PTE_TYPE_SHIFT) & ARM_LPAE_PTE_TYPE_MASK)#define iopte_prot (pte) ((pte) & ARM_LPAE_PTE_ATTR_MASK)
Signature · 6 lines
2.19.1 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
Will Deacon
maintainerQuoted 14 lines · Kunkun Jiang
Knowing from the code, the macro "
iopte_type(pte, l)" doesn't use the parameter "l" (level). So we'd better to remove it.Fixes e1d3c0fd701df(iommu: add ARM LPAE page table allocator)Signed-off-by Kunkun Jiang <[email protected]>--- drivers/iommu/io-pgtable-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iommu/io-pgtable-arm.c +0
-0
drivers/iommu/io-pgtable-arm.c line 134
Quoted 6 lines
drivers/iommu/io-pgtable-arm.c +1
-1@@ -130,7 +130,7 @@/* IOPTE accessors */ #define iopte_deref (pte,d) __va(iopte_to_paddr(pte, d)) -#define iopte_type (pte,l) \ +#define iopte_type (pte) \ (((pte) >> ARM_LPAE_PTE_TYPE_SHIFT) & ARM_LPAE_PTE_TYPE_MASK)
Shouldn't we update all the users of the macro too?
Will
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Hi Will,
Quoted 18 lines · Will Deacon
Quoted 17 lines · Kunkun Jiang
Knowing from the code, the macro "
iopte_type(pte, l)" doesn't use the parameter "l" (level). So we'd better to remove it.Fixes e1d3c0fd701df(iommu: add ARM LPAE page table allocator)Signed-off-by Kunkun Jiang <[email protected]>--- drivers/iommu/io-pgtable-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iommu/io-pgtable-arm.c +0
-0@@ -130,7 +130,7 @@/* IOPTE accessors */ #define iopte_deref (pte,d) __va(iopte_to_paddr(pte, d))
Quoted 7 lines
drivers/iommu/io-pgtable-arm.c line 134
Quoted 3 lines
drivers/iommu/io-pgtable-arm.c +1
-1-#define iopte_type (pte,l) \ +#define iopte_type (pte) \ (((pte) >> ARM_LPAE_PTE_TYPE_SHIFT) & ARM_LPAE_PTE_TYPE_MASK)Shouldn't we update all the users of the macro too?
Will
.
Sorry for my carelessness. :(
I have resent it.
Thanks,
Kunkun Jiang
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu