Commit 6b356022 authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Ingo Molnar

x86: fix 2 section mismatch warnings - find_and_reserve_crashkernel

WARNING: vmlinux.o(.text+0xcd1f): Section mismatch in reference from the function find_and_reserve_crashkernel() to the function .init.text:find_e820_area()
The function find_and_reserve_crashkernel() references
the function __init find_e820_area().
This is often because find_and_reserve_crashkernel lacks a __init
annotation or the annotation of find_e820_area is wrong.

WARNING: vmlinux.o(.text+0xcd38): Section mismatch in reference from the function find_and_reserve_crashkernel() to the function .init.text:reserve_bootmem_generic()
The function find_and_reserve_crashkernel() references
the function __init reserve_bootmem_generic().
This is often because find_and_reserve_crashkernel lacks a __init
annotation or the annotation of reserve_bootmem_generic is wrong.

find_and_reserve_crashkernel is called from __init function (reserve_crashkernel)
and calls 2 __init functions (find_e820_area, reserve_bootmem_generic),
so mark it __init
Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent c9d08f08
...@@ -445,7 +445,7 @@ static void __init reserve_early_setup_data(void) ...@@ -445,7 +445,7 @@ static void __init reserve_early_setup_data(void)
* @size: Size of the crashkernel memory to reserve. * @size: Size of the crashkernel memory to reserve.
* Returns the base address on success, and -1ULL on failure. * Returns the base address on success, and -1ULL on failure.
*/ */
unsigned long long find_and_reserve_crashkernel(unsigned long long size) unsigned long long __init find_and_reserve_crashkernel(unsigned long long size)
{ {
const unsigned long long alignment = 16<<20; /* 16M */ const unsigned long long alignment = 16<<20; /* 16M */
unsigned long long start = 0LL; unsigned long long start = 0LL;
......
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