# git rev-parse -q --verify 011ecf0e0b6e64dd1df5144ec4dfcab761ec7533^{commit} 011ecf0e0b6e64dd1df5144ec4dfcab761ec7533 already have revision, skipping fetch # git checkout -q -f -B kisskb 011ecf0e0b6e64dd1df5144ec4dfcab761ec7533 # git clean -qxdf # < git log -1 # commit 011ecf0e0b6e64dd1df5144ec4dfcab761ec7533 # Author: Masahiro Yamada # Date: Thu Oct 13 03:01:18 2022 +0900 # # kbuild: move -Wundef from KBUILD_CFLAGS to KBUILD_CPPFLAGS # # The use of an undefined macro in an #if directive is warned, but only # in *.c files. No warning from other files such as *.S, *.lds.S. # # Since -Wundef is a preprocessor-related warning, it should be added to # KBUILD_CPPFLAGS instead of KBUILD_CFLAGS. # # Fix some uncovered issues. # # [1] Add -D__LINUX_ARM_ARCH__=* to KBUILD_CPPFLAGS # # In file included from arch/arm/kernel/vmlinux.lds.S:13: # ./arch/arm/include/asm/cache.h:23:31: warning: "__LINUX_ARM_ARCH__" is not defined, evaluates to 0 [-Wundef] # 23 | #if defined(CONFIG_AEABI) && (__LINUX_ARM_ARCH__ >= 5) # | ^~~~~~~~~~~~~~~~~~ # # [2] Add missing #include # # In file included from arch/arm/mm/cache-v7.S:17: # arch/arm/mm/proc-macros.S:109:5: warning: "L_PTE_SHARED" is not defined, evaluates to 0 [-Wundef] # 109 | #if L_PTE_SHARED != PTE_EXT_SHARED # | ^~~~~~~~~~~~ # arch/arm/mm/proc-macros.S:109:21: warning: "PTE_EXT_SHARED" is not defined, evaluates to 0 [-Wundef] # 109 | #if L_PTE_SHARED != PTE_EXT_SHARED # | ^~~~~~~~~~~~~~ # arch/arm/mm/proc-macros.S:113:10: warning: "L_PTE_XN" is not defined, evaluates to 0 [-Wundef] # 113 | (L_PTE_XN+L_PTE_USER+L_PTE_RDONLY+L_PTE_DIRTY+L_PTE_YOUNG+\ # | ^~~~~~~~ # arch/arm/mm/proc-macros.S:113:19: warning: "L_PTE_USER" is not defined, evaluates to 0 [-Wundef] # 113 | (L_PTE_XN+L_PTE_USER+L_PTE_RDONLY+L_PTE_DIRTY+L_PTE_YOUNG+\ # | ^~~~~~~~~~ # arch/arm/mm/proc-macros.S:113:30: warning: "L_PTE_RDONLY" is not defined, evaluates to 0 [-Wundef] # 113 | (L_PTE_XN+L_PTE_USER+L_PTE_RDONLY+L_PTE_DIRTY+L_PTE_YOUNG+\ # | ^~~~~~~~~~~~ # arch/arm/mm/proc-macros.S:113:43: warning: "L_PTE_DIRTY" is not defined, evaluates to 0 [-Wundef] # 113 | (L_PTE_XN+L_PTE_USER+L_PTE_RDONLY+L_PTE_DIRTY+L_PTE_YOUNG+\ # | ^~~~~~~~~~~ # arch/arm/mm/proc-macros.S:113:55: warning: "L_PTE_YOUNG" is not defined, evaluates to 0 [-Wundef] # 113 | (L_PTE_XN+L_PTE_USER+L_PTE_RDONLY+L_PTE_DIRTY+L_PTE_YOUNG+\ # | ^~~~~~~~~~~ # arch/arm/mm/proc-macros.S:114:10: warning: "L_PTE_PRESENT" is not defined, evaluates to 0 [-Wundef] # 114 | L_PTE_PRESENT) > L_PTE_SHARED # | ^~~~~~~~~~~~~ # arch/arm/mm/proc-macros.S:114:27: warning: "L_PTE_SHARED" is not defined, evaluates to 0 [-Wundef] # 114 | L_PTE_PRESENT) > L_PTE_SHARED # | ^~~~~~~~~~~~ # # [3] #if -> #ifdef # # arch/riscv/kernel/head.S:329:5: warning: "CONFIG_RISCV_BOOT_SPINWAIT" is not defined, evaluates to 0 [-Wundef] # 329 | #if CONFIG_RISCV_BOOT_SPINWAIT # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # # [4] #elif -> #elif defined() # # arch/s390/boot/decompressor.c:28:7: warning: "CONFIG_KERNEL_ZSTD" is not defined, evaluates to 0 [-Wundef] # 28 | #elif CONFIG_KERNEL_ZSTD # | ^~~~~~~~~~~~~~~~~~ # # [5] Exclude arm64 for now # # In file included from arch/arm64/kernel/vmlinux.lds.S:65: # arch/arm64/include/asm/kernel-pgtable.h:135:41: warning: "PMD_SHIFT" is not defined, evaluates to 0 [-Wundef] # 135 | #define ARM64_MEMSTART_SHIFT PMD_SHIFT # | ^~~~~~~~~ # In file included from arch/arm64/include/asm/asm-uaccess.h:8, # from arch/arm64/kernel/entry.S:29: # arch/arm64/include/asm/kernel-pgtable.h:135:41: warning: "PMD_SHIFT" is not defined, evaluates to 0 [-Wundef] # 135 | #define ARM64_MEMSTART_SHIFT PMD_SHIFT # | ^~~~~~~~~ # # Signed-off-by: Masahiro Yamada # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/aarch64-linux/bin/aarch64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/aarch64-linux/bin/aarch64-linux-ld --version # < git log --format=%s --max-count=1 011ecf0e0b6e64dd1df5144ec4dfcab761ec7533 # < make -s -j 40 ARCH=arm64 O=/kisskb/build/kbuild_arm64-defconfig_arm64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/aarch64-linux/bin/aarch64-linux- defconfig # < make -s -j 40 ARCH=arm64 O=/kisskb/build/kbuild_arm64-defconfig_arm64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/aarch64-linux/bin/aarch64-linux- help # make -s -j 40 ARCH=arm64 O=/kisskb/build/kbuild_arm64-defconfig_arm64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/aarch64-linux/bin/aarch64-linux- olddefconfig # make -s -j 40 ARCH=arm64 O=/kisskb/build/kbuild_arm64-defconfig_arm64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/aarch64-linux/bin/aarch64-linux- Completed OK # rm -rf /kisskb/build/kbuild_arm64-defconfig_arm64-gcc5 # Build took: 0:03:39.245073