• Marcin Slusarz's avatar
    x86, percpu: silence section mismatch warnings related to EARLY_PER_CPU variables · c6a92a25
    Marcin Slusarz authored
    Quoting Mike Travis in "x86: cleanup early per cpu variables/accesses v4"
    (23ca4bba):
    
        The DEFINE macro defines the per_cpu variable as well as the early
        map and pointer.  It also initializes the per_cpu variable and map
        elements to "_initvalue".  The early_* macros provide access to
        the initial map (usually setup during system init) and the early
        pointer.  This pointer is initialized to point to the early map
        but is then NULL'ed when the actual per_cpu areas are setup.  After
        that the per_cpu variable is the correct access to the variable.
    
    As these variables are NULL'ed before __init sections are dropped
    (in setup_per_cpu_maps), they can be safely annotated as __ref.
    
    This change silences following section mismatch warnings:
    
    WARNING: vmlinux.o(.data+0x46c0): Section mismatch in reference from the variable x86_cpu_to_apicid_early_ptr to the variable .init.data:x86_cpu_to_apicid_early_map
    The variable x86_cpu_to_apicid_early_ptr references
    the variable __initdata x86_cpu_to_apicid_early_map
    If the reference is valid then annotate the
    variable with __init* (see linux/init.h) or name the variable:
    *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
    
    WARNING: vmlinux.o(.data+0x46c8): Section mismatch in reference from the variable x86_bios_cpu_apicid_early_ptr to the variable .init.data:x86_bios_cpu_apicid_early_map
    The variable x86_bios_cpu_apicid_early_ptr references
    the variable __initdata x86_bios_cpu_apicid_early_map
    If the reference is valid then annotate the
    variable with __init* (see linux/init.h) or name the variable:
    *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
    
    WARNING: vmlinux.o(.data+0x46d0): Section mismatch in reference from the variable x86_cpu_to_node_map_early_ptr to the variable .init.data:x86_cpu_to_node_map_early_map
    The variable x86_cpu_to_node_map_early_ptr references
    the variable __initdata x86_cpu_to_node_map_early_map
    If the reference is valid then annotate the
    variable with __init* (see linux/init.h) or name the variable:
    *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
    Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
    Cc: Mike Travis <travis@sgi.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    c6a92a25
Name
Last commit
Last update
..
acpi Loading commit data...
asm-alpha Loading commit data...
asm-arm Loading commit data...
asm-blackfin Loading commit data...
asm-cris Loading commit data...
asm-frv Loading commit data...
asm-generic Loading commit data...
asm-m32r Loading commit data...
asm-m68k Loading commit data...
asm-mips Loading commit data...
asm-mn10300 Loading commit data...
asm-parisc Loading commit data...
asm-um Loading commit data...
asm-x86 Loading commit data...
asm-xtensa Loading commit data...
crypto Loading commit data...
drm Loading commit data...
keys Loading commit data...
linux Loading commit data...
math-emu Loading commit data...
media Loading commit data...
mtd Loading commit data...
net Loading commit data...
pcmcia Loading commit data...
rdma Loading commit data...
rxrpc Loading commit data...
scsi Loading commit data...
sound Loading commit data...
video Loading commit data...
xen Loading commit data...
Kbuild Loading commit data...