Commit 1e296f57 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Ingo Molnar

x86: fix section mismatch warning in srat_64.c

Fix the following warnings:
WARNING: arch/x86/mm/built-in.o(.text+0x1abc): Section mismatch: reference to .init.data:nodes_parsed in 'unparse_node'
WARNING: arch/x86/mm/built-in.o(.text+0x1ac6): Section mismatch: reference to .cpuinit.data:apicid_to_node in 'unparse_node'
WARNING: arch/x86/mm/built-in.o(.text+0x1ad2): Section mismatch: reference to .cpuinit.data:apicid_to_node in 'unparse_node'

unparse_node are static and only used by acpi_scan_nodes which
is already annotated __init.
So we annotate unparse_node with __init.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 85b74d6c
...@@ -323,7 +323,7 @@ static int __init nodes_cover_memory(const struct bootnode *nodes) ...@@ -323,7 +323,7 @@ static int __init nodes_cover_memory(const struct bootnode *nodes)
return 1; return 1;
} }
static void unparse_node(int node) static void __init unparse_node(int node)
{ {
int i; int i;
node_clear(node, nodes_parsed); node_clear(node, nodes_parsed);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment