# 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_mpc85xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # < make -s -j 120 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_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_mpc85xx_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_mpc85xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd5ba64) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4b338) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:39 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6497088 Bytes = 6344.81 KiB = 6.20 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:39 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6497034 Bytes = 6344.76 KiB = 6.20 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:39 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6494788 Bytes = 6342.57 KiB = 6.19 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:39 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6494335 Bytes = 6342.12 KiB = 6.19 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:39 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6494694 Bytes = 6342.47 KiB = 6.19 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:40 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6494429 Bytes = 6342.22 KiB = 6.19 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:40 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6494801 Bytes = 6342.58 KiB = 6.19 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:40 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6497282 Bytes = 6345.00 KiB = 6.20 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:40 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6494691 Bytes = 6342.47 KiB = 6.19 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:40 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6494452 Bytes = 6342.24 KiB = 6.19 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:40 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6494406 Bytes = 6342.19 KiB = 6.19 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:40 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6494732 Bytes = 6342.51 KiB = 6.19 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:40 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6463485 Bytes = 6312.00 KiB = 6.16 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:40 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6496950 Bytes = 6344.68 KiB = 6.20 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:40 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6494431 Bytes = 6342.22 KiB = 6.19 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.11.0-g5cf0fd591f2e Created: Wed Feb 24 08:09:40 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6496171 Bytes = 6343.92 KiB = 6.20 MiB Load Address: 00e00000 Entry Point: 00e002a4 Completed OK # rm -rf /kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 # Build took: 0:01:21.597757