diff options
author | Petr Tesarik <ptesarik@suse.com> | 2025-04-24 20:15:41 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2025-04-26 09:58:12 +0800 |
commit | c37325cbd91abe3bfab280b3b09947155abe8e07 (patch) | |
tree | 9c48ccad044317c38d0c1dd0d36bd7b85b050b56 | |
parent | 2ef174b13344b3b4554d3d28e6f9e2a2c1d3138f (diff) |
LoongArch: Remove a bogus reference to ZONE_DMA
Remove dead code. LoongArch does not have a DMA memory zone (24bit DMA).
The architecture does not even define MAX_DMA_PFN.
Cc: stable@vger.kernel.org
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
-rw-r--r-- | arch/loongarch/mm/init.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/loongarch/mm/init.c b/arch/loongarch/mm/init.c index fdb7f73ad160..06f11d9e4ec1 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 |