• Leonardo Potenza's avatar
    x86: fix section mismatch warnings in kernel/setup_percpu.c · c7f8562a
    Leonardo Potenza authored
    The function setup_cpu_local_masks() has been marked __init, in
    order to remove the following section mismatch messages:
    
    WARNING: vmlinux.o(.text+0x3c2c7): Section mismatch in reference from the function setup_cpu_local_masks() to the function .init.text:alloc_bootmem_cpumask_var()
    The function setup_cpu_local_masks() references
    the function __init alloc_bootmem_cpumask_var().
    This is often because setup_cpu_local_masks lacks a __init
    annotation or the annotation of alloc_bootmem_cpumask_var is wrong.
    
    WARNING: vmlinux.o(.text+0x3c2d3): Section mismatch in reference from the function setup_cpu_local_masks() to the function .init.text:alloc_bootmem_cpumask_var()
    The function setup_cpu_local_masks() references
    the function __init alloc_bootmem_cpumask_var().
    This is often because setup_cpu_local_masks lacks a __init
    annotation or the annotation of alloc_bootmem_cpumask_var is wrong.
    
    WARNING: vmlinux.o(.text+0x3c2df): Section mismatch in reference from the function setup_cpu_local_masks() to the function .init.text:alloc_bootmem_cpumask_var()
    The function setup_cpu_local_masks() references
    the function __init alloc_bootmem_cpumask_var().
    This is often because setup_cpu_local_masks lacks a __init
    annotation or the annotation of alloc_bootmem_cpumask_var is wrong.
    
    WARNING: vmlinux.o(.text+0x3c2eb): Section mismatch in reference from the function setup_cpu_local_masks() to the function .init.text:alloc_bootmem_cpumask_var()
    The function setup_cpu_local_masks() references
    the function __init alloc_bootmem_cpumask_var().
    This is often because setup_cpu_local_masks lacks a __init
    annotation or the annotation of alloc_bootmem_cpumask_var is wrong.
    Signed-off-by: default avatarLeonardo Potenza <lpotenza@inwind.it>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    c7f8562a
setup_percpu.c 9.79 KB