# 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-8.1.0-nolibc/mips-linux/bin/mips-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux-ld --version # < git log --format=%s --max-count=1 fc45f8974252b140023cdccc4a0907853c3ecec8 # < make -s -j 10 ARCH=mips O=/kisskb/build/sfr-test_mips-defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- defconfig # < make -s -j 10 ARCH=mips O=/kisskb/build/sfr-test_mips-defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- help # make -s -j 10 ARCH=mips O=/kisskb/build/sfr-test_mips-defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- olddefconfig # make -s -j 10 ARCH=mips O=/kisskb/build/sfr-test_mips-defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- FIT description: Linux 5.8.0-rc3-gfc45f8974252 Created: Fri Aug 21 11:21:18 2020 Image 0 (kernel@0) Description: Linux 5.8.0-rc3-gfc45f8974252 Created: Fri Aug 21 11:21:18 2020 Type: Kernel Image Compression: gzip compressed Data Size: 4976052 Bytes = 4859.43 KiB = 4.75 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x809303b4 Hash algo: sha1 Hash value: 684448723240b334166e5028626440644e7e9bc7 Image 1 (fdt@boston) Description: img,boston Device Tree Created: Fri Aug 21 11:21:18 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 3793 Bytes = 3.70 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 4799f50d688573234da6e9d7701234d394759ef4 Image 2 (fdt@ni169445) Description: NI 169445 device tree Created: Fri Aug 21 11:21:18 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Image 3 (fdt@ocelot_pcb123) Description: MSCC Ocelot PCB123 Device Tree Created: Fri Aug 21 11:21:18 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 4639 Bytes = 4.53 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: be2724f58b66c316a61da7c11ced633f4e7e86c7 Image 4 (fdt@ocelot_pcb120) Description: MSCC Ocelot PCB120 Device Tree Created: Fri Aug 21 11:21:18 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 5198 Bytes = 5.08 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 7556b1594bd7ab9e3b3fa939d8e3e03ae58fa180 Image 5 (fdt@xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Fri Aug 21 11:21:18 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 2708 Bytes = 2.64 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 63d058b780f65e22da30f0a183433765f1807f1d Default Configuration: 'conf@default' Configuration 0 (conf@default) Description: Generic Linux kernel Kernel: kernel@0 Configuration 1 (conf@boston) Description: Boston Linux kernel Kernel: kernel@0 FDT: fdt@boston Configuration 2 (conf@ni169445) Description: NI 169445 Linux Kernel Kernel: kernel@0 FDT: fdt@ni169445 Configuration 3 (conf@ocelot_pcb123) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb123 Configuration 4 (conf@ocelot_pcb120) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb120 Configuration 5 (conf@xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel@0 FDT: fdt@xilfpga Completed OK # rm -rf /kisskb/build/sfr-test_mips-defconfig_mips-gcc8 # Build took: 0:04:02.033735