iommu/vt-d: drop unused cap_super_offset()
Subsystems (2)
PATCH 1/1 iommu/vt-d: drop unused cap_super_offset()
The macro is unused. Drop the dead code.
Signed-off-by Yury Norov (NVIDIA) <[email protected]>
--- drivers/iommu/intel/iommu.h | 2 -- 1 file changed, 2 deletions(-)
drivers/iommu/intel/iommu.h +0 -2
@@ -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) \
Signature · 1 line
2.43.0
Baolu Lu
maintainerQuoted 6 lines · Yury Norov (NVIDIA)
The macro is unused. Drop the dead code.
Signed-off-by Yury Norov (NVIDIA)<[email protected]>--- drivers/iommu/intel/iommu.h | 2 -- 1 file changed, 2 deletions(-)
Queued for v6.18.
Thanks,
baolu