Message ID | 1619058274-6996-2-git-send-email-tangyouling@loongson.cn (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | mips: Fix related problems in kdump operation | expand |
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 279be01..9338520 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -37,6 +37,7 @@ #include <asm/cdmm.h> #include <asm/cpu.h> #include <asm/debug.h> +#include <asm/mmzone.h> #include <asm/sections.h> #include <asm/setup.h> #include <asm/smp-ops.h> @@ -359,7 +360,7 @@ static int __init early_parse_mem(char *p) if (*p == '@') start = memparse(p + 1, &p); - memblock_add(start, size); + memblock_add_node(start, size, pa_to_nid(start)); return 0; }