# git rev-parse -q --verify 5cf0fd591f2e7833405bdc7ce2176c3502e8a11e^{commit} 5cf0fd591f2e7833405bdc7ce2176c3502e8a11e already have revision, skipping fetch # git checkout -q -f -B kisskb 5cf0fd591f2e7833405bdc7ce2176c3502e8a11e # git clean -qxdf # < git log -1 # commit 5cf0fd591f2e7833405bdc7ce2176c3502e8a11e # Author: Linus Torvalds # Date: Tue Feb 23 12:21:58 2021 -0800 # # Kbuild: disable TRIM_UNUSED_KSYMS option # # The removal of EXPORT_UNUSED_SYMBOL() in commit 367948220fce looks like # (and was sold as) a no-op, but it actually had a rather serious and # subtle side effect: the UNUSED_SYMBOLS option not only enabled the # removed (unused) functionality, it also _disabled_ the TRIM_UNUSED_KSYMS # functionality. # # And it turns out that TRIM_UNUSED_KSYMS is a huge time waste, and takes # up a third of the kernel build time for me. For no actual upside, since # no distro is likely to ever be able to enable it (because they all # support external kernel modules). # # Rather than re-enable EXPORT_UNUSED_SYMBOL, this just disables the # TRIM_UNUSED_KSYMS option by marking it broken. I'm tempted to just # remove the support entirely, but maybe somebody has a use-case and can # fix the behavior of it. # # I could have just disabled it for COMPILE_TEST, but it really smells # like the TRIM_UNUSED_KSYMS option is badly done and not really useful, # so this takes the more direct approach - let's see if anybody ever # actually notices or complains. # # Cc: Miroslav Benes # Cc: Emil Velikov # Cc: Christoph Hellwig # Cc: Jessica Yu # Fixes: 367948220fce ("module: remove EXPORT_UNUSED_SYMBOL*") # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux-ld --version # < git log --format=%s --max-count=1 5cf0fd591f2e7833405bdc7ce2176c3502e8a11e # < make -s -j 48 ARCH=nds32 O=/kisskb/build/linus_nds32-allmodconfig_nds32le-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux- allmodconfig # < make -s -j 48 ARCH=nds32 O=/kisskb/build/linus_nds32-allmodconfig_nds32le-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux- help # make -s -j 48 ARCH=nds32 O=/kisskb/build/linus_nds32-allmodconfig_nds32le-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux- olddefconfig # make -s -j 48 ARCH=nds32 O=/kisskb/build/linus_nds32-allmodconfig_nds32le-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/arch/nds32/kernel/setup.c: In function 'setup_memory': /kisskb/src/arch/nds32/kernel/setup.c:247:26: warning: unused variable 'region' [-Wunused-variable] struct memblock_region *region; ^~~~~~ /kisskb/src/drivers/input/joystick/analog.c:160:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp] #warning Precise timer not defined for this architecture. ^~~~~~~ In file included from /kisskb/src/drivers/net/wireless/ath/ath11k/qmi.c:10: /kisskb/src/drivers/net/wireless/ath/ath11k/qmi.c: In function 'ath11k_qmi_respond_fw_mem_request': /kisskb/src/drivers/net/wireless/ath/ath11k/qmi.c:1690:8: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] "qmi req mem_seg[%d] 0x%llx %u %u\n", i, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ab->qmi.target_mem[i].paddr, ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/wireless/ath/ath11k/debug.h:64:30: note: in definition of macro 'ath11k_dbg' __ath11k_dbg(ar, dbg_mask, fmt, ##__VA_ARGS__); \ ^~~ WARNING: modpost: EXPORT symbol "clear_page" [vmlinux] version generation failed, symbol will not be versioned. WARNING: modpost: EXPORT symbol "copy_page" [vmlinux] version generation failed, symbol will not be versioned. Completed OK # rm -rf /kisskb/build/linus_nds32-allmodconfig_nds32le-gcc8 # Build took: 0:13:26.577658