[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220127223014.GA44143@ca5a2f49b72c>
Date: Fri, 28 Jan 2022 06:30:15 +0800
From: kernel test robot <lkp@...el.com>
To: David Hildenbrand <david@...hat.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [RFC PATCH davidhildenbrand] early_node_zone_for_memory_block() can
be static
drivers/base/memory.c:648:13: warning: symbol 'early_node_zone_for_memory_block' was not declared. Should it be static?
Fixes: 176a3d535903 ("tmp")
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: kernel test robot <lkp@...el.com>
---
memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index fa20ca42862f4..0b396e4c30667 100644
--- a/drivers/base/memory.c
+++ b/drivers/base/memory.c
@@ -645,7 +645,7 @@ int register_memory(struct memory_block *memory)
return ret;
}
-struct zone *early_node_zone_for_memory_block(int nid, struct memory_block *mem)
+static struct zone *early_node_zone_for_memory_block(int nid, struct memory_block *mem)
{
const unsigned long start_pfn = section_nr_to_pfn(mem->start_section_nr);
const unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block;
Powered by blists - more mailing lists