# git rev-parse -q --verify e2079e93f562c7f7a030eb7642017ee5eabaaa10^{commit} e2079e93f562c7f7a030eb7642017ee5eabaaa10 already have revision, skipping fetch # git checkout -q -f -B kisskb e2079e93f562c7f7a030eb7642017ee5eabaaa10 # git clean -qxdf # < git log -1 # commit e2079e93f562c7f7a030eb7642017ee5eabaaa10 # Author: Nathan Chancellor # Date: Mon Aug 26 17:41:55 2019 -0700 # # kbuild: Do not enable -Wimplicit-fallthrough for clang for now # # This functionally reverts commit bfd77145f35c ("Makefile: Convert # -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang"). # # clang enabled support for -Wimplicit-fallthrough in C in r369414 [1], # which causes a lot of warnings when building the kernel for two reasons: # # 1. Clang does not support the /* fall through */ comments. There seems # to be a general consensus in the LLVM community that this is not # something they want to support. Joe Perches wrote a script to convert # all of the comments to a "fallthrough" keyword that will be added to # compiler_attributes.h [2] [3], which catches the vast majority of the # comments. There doesn't appear to be any consensus in the kernel # community when to do this conversion. # # 2. Clang and GCC disagree about falling through to final case statements # with no content or cases that simply break: # # https://godbolt.org/z/c8csDu # # This difference contributes at least 50 warnings in an allyesconfig # build for x86, not considering other architectures. This difference # will need to be discussed to see which compiler is right [4] [5]. # # [1]: https://github.com/llvm/llvm-project/commit/1e0affb6e564b7361b0aadb38805f26deff4ecfc # [2]: https://lore.kernel.org/lkml/61ddbb86d5e68a15e24ccb06d9b399bbf5ce2da7.camel@perches.com/ # [3]: https://lore.kernel.org/lkml/1d2830aadbe9d8151728a7df5b88528fc72a0095.1564549413.git.joe@perches.com/ # [4]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91432 # [5]: https://github.com/ClangBuiltLinux/linux/issues/636 # # Given these two problems need discussion and coordination, do not enable # -Wimplicit-fallthrough with clang right now. Add a comment to explain # what is going on as well. This commit should be reverted once these two # issues are fully flushed out and resolved. # # Suggested-by: Masahiro Yamada # Signed-off-by: Nathan Chancellor # Acked-by: Miguel Ojeda # Acked-by: Nick Desaulniers # Acked-by: Gustavo A. R. Silva # Signed-off-by: Masahiro Yamada # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 e2079e93f562c7f7a030eb7642017ee5eabaaa10 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/kbuild_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_smp_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/kbuild_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:194:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:800:70: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:797:68: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2591:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1852:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1465:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:248:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:228:19: note: 'i' was declared here /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:338:21: note: 'pdeo' was declared here /kisskb/src/drivers/usb/core/devio.c: In function 'async_completed': /kisskb/src/drivers/usb/core/devio.c:613:23: warning: 'errno' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] WARNING: "ahci_em_messages" [vmlinux] is a static EXPORT_SYMBOL_GPL WARNING: "ftrace_set_clr_event" [vmlinux] is a static EXPORT_SYMBOL_GPL WARNING: "ahci_em_messages" [vmlinux] is a static EXPORT_SYMBOL_GPL WARNING: "ftrace_set_clr_event" [vmlinux] is a static EXPORT_SYMBOL_GPL /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) /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) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc17d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcb0fd4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186413 Bytes = 6041.42 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6185987 Bytes = 6041.00 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6187137 Bytes = 6042.13 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6187545 Bytes = 6042.52 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186035 Bytes = 6041.05 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6155476 Bytes = 6011.21 KiB = 5.87 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186226 Bytes = 6041.24 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186413 Bytes = 6041.42 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6187200 Bytes = 6042.19 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6187467 Bytes = 6042.45 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6185979 Bytes = 6041.00 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186427 Bytes = 6041.43 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186085 Bytes = 6041.10 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6185989 Bytes = 6041.00 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186092 Bytes = 6041.11 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-rc4-ge2079e93f562 Created: Fri Aug 30 05:52:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186299 Bytes = 6041.31 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002e8 Completed OK # rm -rf /kisskb/build/kbuild_mpc85xx_smp_defconfig_powerpc-gcc4.6 # Build took: 0:01:10.197072