]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kbuild: modpost warn if export version crc is missing
authorNicholas Piggin <npiggin@gmail.com>
Wed, 23 Nov 2016 16:41:42 +0000 (03:41 +1100)
committerMichal Marek <mmarek@suse.com>
Tue, 29 Nov 2016 14:58:57 +0000 (15:58 +0100)
commitd8c1eb86e9528214fed7909bfef988b472a76c2c
treebb0837208706a5c3212e09dc2500e83fc159dcdb
parent4b89b7f7aad5742523db801b7107598e5b5a42c8
kbuild: modpost warn if export version crc is missing

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: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/mod/modpost.c