* [PATCH v2] powerpc/iommu: Code cleanup for cell/iommu.c
@ 2024-01-25 8:26 Kunwu Chan
2024-05-08 13:39 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Kunwu Chan @ 2024-01-25 8:26 UTC (permalink / raw
To: arnd, mpe, npiggin, christophe.leroy, aneesh.kumar, naveen.n.rao
Cc: linuxppc-dev, linux-kernel, Kunwu Chan
This part was commented from commit 165785e5c0be ("[POWERPC] Cell
iommu support") in about 17 years before.
If there are no plans to enable this part code in the future,
we can remove this dead code.
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
---
Change in v2:
- Remove the second blank line
---
arch/powerpc/platforms/cell/iommu.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c
index 1202a69b0a20..4cd9c0de22c2 100644
--- a/arch/powerpc/platforms/cell/iommu.c
+++ b/arch/powerpc/platforms/cell/iommu.c
@@ -424,23 +424,6 @@ static void __init cell_iommu_setup_hardware(struct cbe_iommu *iommu,
cell_iommu_enable_hardware(iommu);
}
-#if 0/* Unused for now */
-static struct iommu_window *find_window(struct cbe_iommu *iommu,
- unsigned long offset, unsigned long size)
-{
- struct iommu_window *window;
-
- /* todo: check for overlapping (but not equal) windows) */
-
- list_for_each_entry(window, &(iommu->windows), list) {
- if (window->offset == offset && window->size == size)
- return window;
- }
-
- return NULL;
-}
-#endif
-
static inline u32 cell_iommu_get_ioid(struct device_node *np)
{
const u32 *ioid;
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] powerpc/iommu: Code cleanup for cell/iommu.c
2024-01-25 8:26 [PATCH v2] powerpc/iommu: Code cleanup for cell/iommu.c Kunwu Chan
@ 2024-05-08 13:39 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2024-05-08 13:39 UTC (permalink / raw
To: arnd, mpe, npiggin, christophe.leroy, aneesh.kumar, naveen.n.rao,
Kunwu Chan
Cc: linuxppc-dev, linux-kernel
On Thu, 25 Jan 2024 16:26:37 +0800, Kunwu Chan wrote:
> This part was commented from commit 165785e5c0be ("[POWERPC] Cell
> iommu support") in about 17 years before.
>
> If there are no plans to enable this part code in the future,
> we can remove this dead code.
>
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/iommu: Code cleanup for cell/iommu.c
https://git.kernel.org/powerpc/c/f3560a2ba5cbbb6c62c14dbdc1e33cb3565199d0
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-08 13:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-25 8:26 [PATCH v2] powerpc/iommu: Code cleanup for cell/iommu.c Kunwu Chan
2024-05-08 13:39 ` Michael Ellerman
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 read-only IMAP folder(s) and NNTP newsgroup(s).