Skip to content
Snippets Groups Projects
  • Gabor Juhos's avatar
    b942309f
    generic: use __meminit annotation for crashlog_init_memblock · b942309f
    Gabor Juhos authored
    Fixes this section mismatch warning:
    WARNING: vmlinux.o(.meminit.text+0xb14): Section mismatch in reference
    from the function memblock_insert_region() to the function
    .init.text:crashlog_init_memblock()
    The function __meminit memblock_insert_region() references
    a function __init crashlog_init_memblock().
    If crashlog_init_memblock is only used by memblock_insert_region then
    annotate crashlog_init_memblock with a matching annotation.
    
    Also, remove the __init annotations from 'include/linux/crashlog.h'
    
    SVN-Revision: 33137
    b942309f
    History
    generic: use __meminit annotation for crashlog_init_memblock
    Gabor Juhos authored
    Fixes this section mismatch warning:
    WARNING: vmlinux.o(.meminit.text+0xb14): Section mismatch in reference
    from the function memblock_insert_region() to the function
    .init.text:crashlog_init_memblock()
    The function __meminit memblock_insert_region() references
    a function __init crashlog_init_memblock().
    If crashlog_init_memblock is only used by memblock_insert_region then
    annotate crashlog_init_memblock with a matching annotation.
    
    Also, remove the __init annotations from 'include/linux/crashlog.h'
    
    SVN-Revision: 33137