From: Mike Rapoport <rppt@kernel.org>
To: Petr Tesarik <ptesarik@suse.com>
Cc: Huacai Chen <chenhuacai@kernel.org>,
WANG Xuerui <kernel@xen0n.name>,
Guo Weikang <guoweikang.kernel@gmail.com>,
Bibo Mao <maobibo@loongson.cn>,
loongarch@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] LoongArch: Remove a bogus reference to ZONE_DMA
Date: Thu, 3 Apr 2025 17:14:36 +0300 [thread overview]
Message-ID: <Z-6XzG8En35-vg-H@kernel.org> (raw)
In-Reply-To: <20250403141125.271047-1-ptesarik@suse.com>
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.
next prev parent reply other threads:[~2025-04-03 14:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-03 14:11 [PATCH] LoongArch: Remove a bogus reference to ZONE_DMA Petr Tesarik
2025-04-03 14:14 ` Mike Rapoport [this message]
2025-04-26 10:11 ` Huacai Chen
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=Z-6XzG8En35-vg-H@kernel.org \
--to=rppt@kernel.org \
--cc=chenhuacai@kernel.org \
--cc=guoweikang.kernel@gmail.com \
--cc=kernel@xen0n.name \
--cc=linux-kernel@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=maobibo@loongson.cn \
--cc=ptesarik@suse.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.