# 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-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 5cf0fd591f2e7833405bdc7ce2176c3502e8a11e # < make -s -j 120 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc83xx_defconfig # < make -s -j 120 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 120 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1314:1: warning: the frame size of 1160 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ INFO: Uncompressed kernel (size 0x7e4a18) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7e4a18) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7e4a18) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7e4a18) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0x7e4a18) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7e4a18) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7d4408) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7e4a18) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:08:18 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3606230 Bytes = 3521.71 KiB = 3.44 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:08:18 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3636435 Bytes = 3551.21 KiB = 3.47 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:08:18 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3636235 Bytes = 3551.01 KiB = 3.47 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:08:18 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3635750 Bytes = 3550.54 KiB = 3.47 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:08:18 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3636800 Bytes = 3551.56 KiB = 3.47 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:08:18 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3636440 Bytes = 3551.21 KiB = 3.47 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:08:18 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3636435 Bytes = 3551.21 KiB = 3.47 MiB Load Address: 00800000 Entry Point: 00800294 Completed OK # rm -rf /kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 # Build took: 0:00:36.332421