# 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 48 ARCH=powerpc O=/kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc44x_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_ppc44x_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=] } ^ /kisskb/src/lib/zstd/compress.c: In function 'ZSTD_compressBlock_doubleFast': /kisskb/src/lib/zstd/compress.c:1393:1: warning: the frame size of 1584 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ INFO: Uncompressed kernel (size 0x613a4c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x613a4c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x613a4c) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0x613a4c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x613a4c) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0x613a4c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x613a4c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x613a4c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x613a4c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x613a4c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x613a4c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:11:49 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3115849 Bytes = 3042.82 KiB = 2.97 MiB Load Address: 00700000 Entry Point: 00701498 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:11:50 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3115885 Bytes = 3042.86 KiB = 2.97 MiB Load Address: 00700000 Entry Point: 007014b8 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:11:50 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3116081 Bytes = 3043.05 KiB = 2.97 MiB Load Address: 00700000 Entry Point: 007014a8 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:11:50 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3115985 Bytes = 3042.95 KiB = 2.97 MiB Load Address: 00700000 Entry Point: 007000c4 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:11:50 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3116091 Bytes = 3043.06 KiB = 2.97 MiB Load Address: 00700000 Entry Point: 00701488 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:11:50 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3115871 Bytes = 3042.84 KiB = 2.97 MiB Load Address: 00700000 Entry Point: 007001b8 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:11:50 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3116090 Bytes = 3043.06 KiB = 2.97 MiB Load Address: 00700000 Entry Point: 007014a0 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:11:50 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3115946 Bytes = 3042.92 KiB = 2.97 MiB Load Address: 00700000 Entry Point: 007014a8 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:11:50 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3115879 Bytes = 3042.85 KiB = 2.97 MiB Load Address: 00700000 Entry Point: 007014a8 Completed OK # rm -rf /kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 # Build took: 0:00:58.219105