From: Wei Wang <wei.w.wang@hotmail.com>
To: joro@8bytes.org, suravee.suthikulpanit@amd.com, jgg@nvidia.com,
will@kernel.org, robin.murphy@arm.com
Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org,
wei.w.wang@hotmail.com
Subject: [PATCH v1] iommu/amd: Remove unused IOMMU_IN/OUT_ADDR_BIT_SIZE macros
Date: Tue, 21 Apr 2026 17:57:32 +0800 [thread overview]
Message-ID: <SI2PR01MB439351F56D464B8241EFC1B6DC2C2@SI2PR01MB4393.apcprd01.prod.exchangelabs.com> (raw)
The macros IOMMU_IN/OUT_ADDR_BIT_SIZE became unused after commit
2fdf6db436e3 ("iommu/amd: Remove AMD io_pgtable support"), which removed
the last references in io_pgtable.c and io_pgtable_v2.c. Remove them to
clean up unused definitions.
Signed-off-by: Wei Wang <wei.w.wang@hotmail.com>
---
drivers/iommu/amd/amd_iommu_types.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd/amd_iommu_types.h
index c685d3771436..19d73963acbf 100644
--- a/drivers/iommu/amd/amd_iommu_types.h
+++ b/drivers/iommu/amd/amd_iommu_types.h
@@ -300,9 +300,6 @@
#define GA_GUEST_NR 0x1
-#define IOMMU_IN_ADDR_BIT_SIZE 52
-#define IOMMU_OUT_ADDR_BIT_SIZE 52
-
/*
* This bitmap is used to advertise the page sizes our hardware support
* to the IOMMU core, which will then use this information to split
base-commit: 97e797263a5e963da3d1e66e743fd518567dfe37
--
2.51.0
next reply other threads:[~2026-04-21 9:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-21 9:57 Wei Wang [this message]
2026-04-21 10:00 Wei Wang
2026-04-21 11:42 ` Jason Gunthorpe
2026-05-11 8:06 ` Jörg Rödel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SI2PR01MB439351F56D464B8241EFC1B6DC2C2@SI2PR01MB4393.apcprd01.prod.exchangelabs.com \
--to=wei.w.wang@hotmail.com \
--cc=iommu@lists.linux.dev \
--cc=jgg@nvidia.com \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.murphy@arm.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®