[PATCH] iommu/vt-d: drop unused cap_super_offset()

Yury Norov (NVIDIA) posted 1 patch 2 weeks, 5 days ago
drivers/iommu/intel/iommu.h | 2 --
1 file changed, 2 deletions(-)
[PATCH] iommu/vt-d: drop unused cap_super_offset()
Posted by Yury Norov (NVIDIA) 2 weeks, 5 days ago
The macro is unused. Drop the dead code.

Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
---
 drivers/iommu/intel/iommu.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/iommu/intel/iommu.h b/drivers/iommu/intel/iommu.h
index d09b92871659..7da1cf88ce80 100644
--- a/drivers/iommu/intel/iommu.h
+++ b/drivers/iommu/intel/iommu.h
@@ -173,8 +173,6 @@
 #define cap_pgsel_inv(c)	(((c) >> 39) & 1)
 
 #define cap_super_page_val(c)	(((c) >> 34) & 0xf)
-#define cap_super_offset(c)	(((find_first_bit(&cap_super_page_val(c), 4)) \
-					* OFFSET_STRIDE) + 21)
 
 #define cap_fault_reg_offset(c)	((((c) >> 24) & 0x3ff) * 16)
 #define cap_max_fault_reg_offset(c) \
-- 
2.43.0
Re: [PATCH] iommu/vt-d: drop unused cap_super_offset()
Posted by Baolu Lu 2 weeks, 2 days ago
On 9/13/25 09:50, Yury Norov (NVIDIA) wrote:
> The macro is unused. Drop the dead code.
> 
> Signed-off-by: Yury Norov (NVIDIA)<yury.norov@gmail.com>
> ---
>   drivers/iommu/intel/iommu.h | 2 --
>   1 file changed, 2 deletions(-)

Queued for v6.18.

Thanks,
baolu