# git rev-parse -q --verify fc45f8974252b140023cdccc4a0907853c3ecec8^{commit} # git fetch -q -n -f https://git.kernel.org/pub/scm/linux/kernel/git/sfr/linux.git test warning: The last gc run reported the following. Please correct the root cause and remove .git/gc.log. Automatic cleanup will not be performed until the file is removed. warning: There are too many unreachable loose objects; run 'git prune' to remove them. # git rev-parse -q --verify fc45f8974252b140023cdccc4a0907853c3ecec8^{commit} fc45f8974252b140023cdccc4a0907853c3ecec8 # 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-4.9.4-nolibc/ia64-linux/bin/ia64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/ia64-linux/bin/ia64-linux-ld --version # < git log --format=%s --max-count=1 fc45f8974252b140023cdccc4a0907853c3ecec8 # < make -s -j 8 ARCH=ia64 O=/kisskb/build/sfr-test_ia64-defconfig_ia64-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/ia64-linux/bin/ia64-linux- defconfig # < make -s -j 8 ARCH=ia64 O=/kisskb/build/sfr-test_ia64-defconfig_ia64-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/ia64-linux/bin/ia64-linux- help # make -s -j 8 ARCH=ia64 O=/kisskb/build/sfr-test_ia64-defconfig_ia64-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/ia64-linux/bin/ia64-linux- olddefconfig # make -s -j 8 ARCH=ia64 O=/kisskb/build/sfr-test_ia64-defconfig_ia64-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/ia64-linux/bin/ia64-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] In file included from /kisskb/src/arch/ia64/include/uapi/asm/intrinsics.h:22:0, from /kisskb/src/arch/ia64/include/asm/intrinsics.h:11, from /kisskb/src/arch/ia64/include/asm/bitops.h:19, from /kisskb/src/include/linux/bitops.h:29, from /kisskb/src/include/linux/kernel.h:12, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/preempt.h:11, from /kisskb/src/include/linux/spinlock.h:51, from /kisskb/src/include/linux/seqlock.h:36, from /kisskb/src/include/linux/time.h:6, from /kisskb/src/fs/nfs/read.c:11: /kisskb/src/fs/nfs/read.c: In function 'nfs_read_completion': /kisskb/src/arch/ia64/include/uapi/asm/cmpxchg.h:57:2: warning: value computed is not used [-Wunused-value] ((__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr)))) ^ /kisskb/src/fs/nfs/read.c:196:5: note: in expansion of macro 'xchg' xchg(&nfs_req_openctx(req)->error, error); ^ /kisskb/src/fs/nfs/read.c: In function 'nfs_readpage': /kisskb/src/arch/ia64/include/uapi/asm/cmpxchg.h:57:2: warning: value computed is not used [-Wunused-value] ((__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr)))) ^ /kisskb/src/fs/nfs/read.c:355:2: note: in expansion of macro 'xchg' xchg(&ctx->error, 0); ^ No errors detected in 22247 functions. Completed OK # rm -rf /kisskb/build/sfr-test_ia64-defconfig_ia64-gcc4.9 # Build took: 0:05:06.808034