[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20140106124026.GA2247@swordfish>
Date: Mon, 6 Jan 2014 15:40:26 +0300
From: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: Ingo Molnar <mingo@...hat.com>, "H. Peter Anvin" <hpa@...or.com>,
x86@...nel.org, linux-kernel@...r.kernel.org
Subject: [PATCH -next] check: use NUMA_NO_NODE in
setup_bios_corruption_check()
Commit 68abcdf54742a ("mm/memblock: use WARN_ONCE when MAX_NUMNODES
passed as input parameter") has deprecated usage of MAX_NUMNODES
in __next_free_mem_range(). Pass NUMA_NO_NODE to for_each_free_mem_range().
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
---
arch/x86/kernel/check.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/check.c b/arch/x86/kernel/check.c
index e2dbcb7..83a7995 100644
--- a/arch/x86/kernel/check.c
+++ b/arch/x86/kernel/check.c
@@ -91,7 +91,7 @@ void __init setup_bios_corruption_check(void)
corruption_check_size = round_up(corruption_check_size, PAGE_SIZE);
- for_each_free_mem_range(i, MAX_NUMNODES, &start, &end, NULL) {
+ for_each_free_mem_range(i, NUMA_NO_NODE, &start, &end, NULL) {
start = clamp_t(phys_addr_t, round_up(start, PAGE_SIZE),
PAGE_SIZE, corruption_check_size);
end = clamp_t(phys_addr_t, round_down(end, PAGE_SIZE),
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists