Fix section mismatches. discover_ebda() can be __init.
WARNING: vmlinux.o(.text+0x738a): Section mismatch: reference to .init.data:ebda_addr (between 'discover_ebda' and 'get_model_name')
WARNING: vmlinux.o(.text+0x73c4): Section mismatch: reference to .init.data:ebda_size (between 'discover_ebda' and 'get_model_name')
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
unsigned __initdata ebda_addr;
unsigned __initdata ebda_size;
-static void discover_ebda(void)
+static void __init discover_ebda(void)
{
/*
* there is a real-mode segmented pointer pointing to the