* [PATCH] LoongArch: Remove a bogus reference to ZONE_DMA
@ 2025-04-03 14:11 Petr Tesarik
2025-04-03 14:14 ` Mike Rapoport
2025-04-26 10:11 ` Huacai Chen
0 siblings, 2 replies; 3+ messages in thread
From: Petr Tesarik @ 2025-04-03 14:11 UTC (permalink / raw)
To: Huacai Chen, WANG Xuerui, Guo Weikang
Cc: Mike Rapoport (Microsoft), Bibo Mao, loongarch, linux-kernel,
Petr Tesarik
Remove dead code. LoongArch does not have a DMA memory zone. The
architecture does not even define MAX_DMA_PFN.
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
---
arch/loongarch/mm/init.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/loongarch/mm/init.c b/arch/loongarch/mm/init.c
index ca5aa5f46a9f..7fab370efa74 100644
--- a/arch/loongarch/mm/init.c
+++ b/arch/loongarch/mm/init.c
@@ -65,9 +65,6 @@ void __init paging_init(void)
{
unsigned long max_zone_pfns[MAX_NR_ZONES];
-#ifdef CONFIG_ZONE_DMA
- max_zone_pfns[ZONE_DMA] = MAX_DMA_PFN;
-#endif
#ifdef CONFIG_ZONE_DMA32
max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN;
#endif
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] LoongArch: Remove a bogus reference to ZONE_DMA
2025-04-03 14:11 [PATCH] LoongArch: Remove a bogus reference to ZONE_DMA Petr Tesarik
@ 2025-04-03 14:14 ` Mike Rapoport
2025-04-26 10:11 ` Huacai Chen
1 sibling, 0 replies; 3+ messages in thread
From: Mike Rapoport @ 2025-04-03 14:14 UTC (permalink / raw)
To: Petr Tesarik
Cc: Huacai Chen, WANG Xuerui, Guo Weikang, Bibo Mao, loongarch,
linux-kernel
On Thu, Apr 03, 2025 at 04:11:25PM +0200, Petr Tesarik wrote:
> Remove dead code. LoongArch does not have a DMA memory zone. The
> architecture does not even define MAX_DMA_PFN.
>
> Signed-off-by: Petr Tesarik <ptesarik@suse.com>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
> ---
> arch/loongarch/mm/init.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/arch/loongarch/mm/init.c b/arch/loongarch/mm/init.c
> index ca5aa5f46a9f..7fab370efa74 100644
> --- a/arch/loongarch/mm/init.c
> +++ b/arch/loongarch/mm/init.c
> @@ -65,9 +65,6 @@ void __init paging_init(void)
> {
> unsigned long max_zone_pfns[MAX_NR_ZONES];
>
> -#ifdef CONFIG_ZONE_DMA
> - max_zone_pfns[ZONE_DMA] = MAX_DMA_PFN;
> -#endif
> #ifdef CONFIG_ZONE_DMA32
> max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN;
> #endif
> --
> 2.48.1
>
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] LoongArch: Remove a bogus reference to ZONE_DMA
2025-04-03 14:11 [PATCH] LoongArch: Remove a bogus reference to ZONE_DMA Petr Tesarik
2025-04-03 14:14 ` Mike Rapoport
@ 2025-04-26 10:11 ` Huacai Chen
1 sibling, 0 replies; 3+ messages in thread
From: Huacai Chen @ 2025-04-26 10:11 UTC (permalink / raw)
To: Petr Tesarik
Cc: WANG Xuerui, Guo Weikang, Mike Rapoport (Microsoft), Bibo Mao,
loongarch, linux-kernel
Applied, thanks.
Huacai
On Thu, Apr 3, 2025 at 10:11 PM Petr Tesarik <ptesarik@suse.com> wrote:
>
> Remove dead code. LoongArch does not have a DMA memory zone. The
> architecture does not even define MAX_DMA_PFN.
>
> Signed-off-by: Petr Tesarik <ptesarik@suse.com>
> ---
> arch/loongarch/mm/init.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/arch/loongarch/mm/init.c b/arch/loongarch/mm/init.c
> index ca5aa5f46a9f..7fab370efa74 100644
> --- a/arch/loongarch/mm/init.c
> +++ b/arch/loongarch/mm/init.c
> @@ -65,9 +65,6 @@ void __init paging_init(void)
> {
> unsigned long max_zone_pfns[MAX_NR_ZONES];
>
> -#ifdef CONFIG_ZONE_DMA
> - max_zone_pfns[ZONE_DMA] = MAX_DMA_PFN;
> -#endif
> #ifdef CONFIG_ZONE_DMA32
> max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN;
> #endif
> --
> 2.48.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-26 10:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03 14:11 [PATCH] LoongArch: Remove a bogus reference to ZONE_DMA Petr Tesarik
2025-04-03 14:14 ` Mike Rapoport
2025-04-26 10:11 ` Huacai Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox