Skip to content

Commit c37325c

Browse files
ptesarikchenhuacai
authored andcommitted
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>
1 parent 2ef174b commit c37325c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/loongarch/mm/init.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ void __init paging_init(void)
6565
{
6666
unsigned long max_zone_pfns[MAX_NR_ZONES];
6767

68-
#ifdef CONFIG_ZONE_DMA
69-
max_zone_pfns[ZONE_DMA] = MAX_DMA_PFN;
70-
#endif
7168
#ifdef CONFIG_ZONE_DMA32
7269
max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN;
7370
#endif

0 commit comments

Comments
 (0)