# git rev-parse -q --verify fc45f8974252b140023cdccc4a0907853c3ecec8^{commit} fc45f8974252b140023cdccc4a0907853c3ecec8 already have revision, skipping fetch # git checkout -q -f -B kisskb fc45f8974252b140023cdccc4a0907853c3ecec8 # git clean -qxdf # < git log -1 # commit fc45f8974252b140023cdccc4a0907853c3ecec8 # Author: Stephen Rothwell # Date: Mon Jun 15 18:02:37 2020 +1000 # # major.h: remove the remaining unnecessary includes of linux/major.h # # Now that very file that needs the definitions in major.h explicitly # includes it, this is just cleaning up. # # This is fairly safe because major.h does not include any other files. # The only real risk is if a symbol defined in major.h is constructed by # concatenation in the preprocessor. # # The actual change was done using the following command: # # sed -i -E '/[<"](uapi\/)?linux\/major\.h/d' \ # $(grep -L -w -f xx \ # $(git grep -E -l '[<"](uapi/)?linux/major\.h')) # # Where the file xx contians all the symbols defined in major.h # # (genhd.h was added by inspection.) # # The win here is really just the number of lines to be parsed by the # preprocessor. major.h is 180 lines long and was being included by # these files unnecessarily. In particular, there are 3 global include # files here (tty.h, genhd.h and blkdev.h) that are also included by 354, # 68 and 554 other files, repectively. # # After this, major.h is only included by 4 global include files (which # are in turn included by 297 other files), so its indirect inclusion is # hopefully much reduced. # # Signed-off-by: Stephen Rothwell # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 fc45f8974252b140023cdccc4a0907853c3ecec8 # < make -s -j 10 ARCH=powerpc O=/kisskb/build/sfr-test_ppc44x_defconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc44x_defconfig # < make -s -j 10 ARCH=powerpc O=/kisskb/build/sfr-test_ppc44x_defconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 10 ARCH=powerpc O=/kisskb/build/sfr-test_ppc44x_defconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 10 ARCH=powerpc O=/kisskb/build/sfr-test_ppc44x_defconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/boot/dts/katmai.dts:322.26-361.5: Warning (pci_bridge): /plb/pciex@d00000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:363.26-402.5: Warning (pci_bridge): /plb/pciex@d20000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:404.26-443.5: Warning (pci_bridge): /plb/pciex@d40000000: node name is not "pci" or "pcie" arch/powerpc/boot/dts/katmai.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' INFO: Uncompressed kernel (size 0x66f454) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66f454) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66f454) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66f454) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66f454) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66f454) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66f454) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66f454) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66f454) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66f454) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x66f454) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-5.8.0-rc3-gfc45f8974252 Created: Fri Aug 21 11:14:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3178517 Bytes = 3104.02 KiB = 3.03 MiB Load Address: 00700000 Entry Point: 007000bc Image Name: Linux-5.8.0-rc3-gfc45f8974252 Created: Fri Aug 21 11:14:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3178098 Bytes = 3103.61 KiB = 3.03 MiB Load Address: 00700000 Entry Point: 007001bc Image Name: Linux-5.8.0-rc3-gfc45f8974252 Created: Fri Aug 21 11:14:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3177884 Bytes = 3103.40 KiB = 3.03 MiB Load Address: 00700000 Entry Point: 00701640 Image Name: Linux-5.8.0-rc3-gfc45f8974252 Created: Fri Aug 21 11:14:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3178594 Bytes = 3104.10 KiB = 3.03 MiB Load Address: 00700000 Entry Point: 00701620 Image Name: Linux-5.8.0-rc3-gfc45f8974252 Created: Fri Aug 21 11:14:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3178575 Bytes = 3104.08 KiB = 3.03 MiB Load Address: 00700000 Entry Point: 00701640 Image Name: Linux-5.8.0-rc3-gfc45f8974252 Created: Fri Aug 21 11:14:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3178494 Bytes = 3104.00 KiB = 3.03 MiB Load Address: 00700000 Entry Point: 00701640 Image Name: Linux-5.8.0-rc3-gfc45f8974252 Created: Fri Aug 21 11:14:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3178336 Bytes = 3103.84 KiB = 3.03 MiB Load Address: 00700000 Entry Point: 00701640 Image Name: Linux-5.8.0-rc3-gfc45f8974252 Created: Fri Aug 21 11:14:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3178257 Bytes = 3103.77 KiB = 3.03 MiB Load Address: 00700000 Entry Point: 00701630 Image Name: Linux-5.8.0-rc3-gfc45f8974252 Created: Fri Aug 21 11:14:38 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3178287 Bytes = 3103.80 KiB = 3.03 MiB Load Address: 00700000 Entry Point: 00701650 Completed OK # rm -rf /kisskb/build/sfr-test_ppc44x_defconfig_powerpc-gcc9 # Build took: 0:02:23.493646