• Nicholas Piggin's avatar
    kbuild: modpost warn if export version crc is missing · d8c1eb86
    Nicholas Piggin authored
    This catches the failing ceph CRC on with:
    
        LD      vmlinux.o
        MODPOST vmlinux.o
      WARNING: EXPORT symbol "ceph_monc_do_statfs" [vmlinux] version
      generation failed, symbol will not be versioned.
    
    When the modules referring to exported symbols are built, there is an
    existing warning for missing CRC, but it's not always the case such
    any such module will be built, and in any case it is useful to get a
    warning at the source.
    
    This gets a little verbose with CONFIG_DEBUG_SECTION_MISMATCH,
    producing a warning with each object linked, but I didn't think
    that warranted extra complexity to avoid.
    Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
    Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
    d8c1eb86
modpost.c 65.6 KB