iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iommu/vt-d: drop unused cap_super_offset()
@ 2025-09-13  1:50 Yury Norov (NVIDIA)
  2025-09-16  4:55 ` Baolu Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Yury Norov (NVIDIA) @ 2025-09-13  1:50 UTC (permalink / raw)
  To: David Woodhouse, Lu Baolu, Joerg Roedel, Will Deacon,
	Robin Murphy, iommu, linux-kernel
  Cc: Yury Norov (NVIDIA)

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iommu/vt-d: drop unused cap_super_offset()
  2025-09-13  1:50 [PATCH] iommu/vt-d: drop unused cap_super_offset() Yury Norov (NVIDIA)
@ 2025-09-16  4:55 ` Baolu Lu
  0 siblings, 0 replies; 2+ messages in thread
From: Baolu Lu @ 2025-09-16  4:55 UTC (permalink / raw)
  To: Yury Norov (NVIDIA), David Woodhouse, Joerg Roedel, Will Deacon,
	Robin Murphy, iommu, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-16  4:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-13  1:50 [PATCH] iommu/vt-d: drop unused cap_super_offset() Yury Norov (NVIDIA)
2025-09-16  4:55 ` Baolu Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).