Revision e9338abf0e186336022293d2e454c106761f262b authored by Linus Torvalds on 15 July 2021, 20:57:31 UTC, committed by Linus Torvalds on 15 July 2021, 20:57:31 UTC
Pull fallthrough fixes from Gustavo Silva: "This fixes many fall-through warnings when building with Clang and -Wimplicit-fallthrough, and also enables -Wimplicit-fallthrough for Clang, globally. It's also important to notice that since we have adopted the use of the pseudo-keyword macro fallthrough, we also want to avoid having more /* fall through */ comments being introduced. Contrary to GCC, Clang doesn't recognize any comments as implicit fall-through markings when the -Wimplicit-fallthrough option is enabled. So, in order to avoid having more comments being introduced, we use the option -Wimplicit-fallthrough=5 for GCC, which similar to Clang, will cause a warning in case a code comment is intended to be used as a fall-through marking. The patch for Makefile also enforces this. We had almost 4,000 of these issues for Clang in the beginning, and there might be a couple more out there when building some architectures with certain configurations. However, with the recent fixes I think we are in good shape and it is now possible to enable the warning for Clang" * tag 'Wimplicit-fallthrough-clang-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux: (27 commits) Makefile: Enable -Wimplicit-fallthrough for Clang powerpc/smp: Fix fall-through warning for Clang dmaengine: mpc512x: Fix fall-through warning for Clang usb: gadget: fsl_qe_udc: Fix fall-through warning for Clang powerpc/powernv: Fix fall-through warning for Clang MIPS: Fix unreachable code issue MIPS: Fix fall-through warnings for Clang ASoC: Mediatek: MT8183: Fix fall-through warning for Clang power: supply: Fix fall-through warnings for Clang dmaengine: ti: k3-udma: Fix fall-through warning for Clang s390: Fix fall-through warnings for Clang dmaengine: ipu: Fix fall-through warning for Clang iommu/arm-smmu-v3: Fix fall-through warning for Clang mmc: jz4740: Fix fall-through warning for Clang PCI: Fix fall-through warning for Clang scsi: libsas: Fix fall-through warning for Clang video: fbdev: Fix fall-through warning for Clang math-emu: Fix fall-through warning cpufreq: Fix fall-through warning for Clang drm/msm: Fix fall-through warning in msm_gem_new_impl() ...
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 32.9 KB |
Makefile | -rw-r--r-- | 6.0 KB |
atmel-quadspi.c | -rw-r--r-- | 19.5 KB |
internals.h | -rw-r--r-- | 1.2 KB |
spi-altera-core.c | -rw-r--r-- | 5.0 KB |
spi-altera-dfl.c | -rw-r--r-- | 4.8 KB |
spi-altera-platform.c | -rw-r--r-- | 4.0 KB |
spi-amd.c | -rw-r--r-- | 7.6 KB |
spi-ar934x.c | -rw-r--r-- | 5.8 KB |
spi-armada-3700.c | -rw-r--r-- | 23.6 KB |
spi-at91-usart.c | -rw-r--r-- | 16.9 KB |
spi-ath79.c | -rw-r--r-- | 5.9 KB |
spi-atmel.c | -rw-r--r-- | 43.7 KB |
spi-au1550.c | -rw-r--r-- | 25.2 KB |
spi-axi-spi-engine.c | -rw-r--r-- | 15.0 KB |
spi-bcm-qspi.c | -rw-r--r-- | 38.4 KB |
spi-bcm-qspi.h | -rw-r--r-- | 2.5 KB |
spi-bcm2835.c | -rw-r--r-- | 41.4 KB |
spi-bcm2835aux.c | -rw-r--r-- | 17.1 KB |
spi-bcm63xx-hsspi.c | -rw-r--r-- | 13.9 KB |
spi-bcm63xx.c | -rw-r--r-- | 17.1 KB |
spi-bitbang-txrx.h | -rw-r--r-- | 3.3 KB |
spi-bitbang.c | -rw-r--r-- | 11.1 KB |
spi-brcmstb-qspi.c | -rw-r--r-- | 1011 bytes |
spi-butterfly.c | -rw-r--r-- | 7.7 KB |
spi-cadence-quadspi.c | -rw-r--r-- | 42.7 KB |
spi-cadence.c | -rw-r--r-- | 20.8 KB |
spi-cavium-octeon.c | -rw-r--r-- | 2.4 KB |
spi-cavium-thunderx.c | -rw-r--r-- | 2.7 KB |
spi-cavium.c | -rw-r--r-- | 3.5 KB |
spi-cavium.h | -rw-r--r-- | 7.2 KB |
spi-clps711x.c | -rw-r--r-- | 4.0 KB |
spi-coldfire-qspi.c | -rw-r--r-- | 12.6 KB |
spi-davinci.c | -rw-r--r-- | 26.6 KB |
spi-dln2.c | -rw-r--r-- | 20.6 KB |
spi-dw-bt1.c | -rw-r--r-- | 8.6 KB |
spi-dw-core.c | -rw-r--r-- | 26.0 KB |
spi-dw-dma.c | -rw-r--r-- | 16.4 KB |
spi-dw-mmio.c | -rw-r--r-- | 10.1 KB |
spi-dw-pci.c | -rw-r--r-- | 4.9 KB |
spi-dw.h | -rw-r--r-- | 7.7 KB |
spi-ep93xx.c | -rw-r--r-- | 19.1 KB |
spi-falcon.c | -rw-r--r-- | 10.2 KB |
spi-fsi.c | -rw-r--r-- | 14.3 KB |
spi-fsl-cpm.c | -rw-r--r-- | 9.9 KB |
spi-fsl-cpm.h | -rw-r--r-- | 1.4 KB |
spi-fsl-dspi.c | -rw-r--r-- | 35.1 KB |
spi-fsl-espi.c | -rw-r--r-- | 21.1 KB |
spi-fsl-lib.c | -rw-r--r-- | 4.1 KB |
spi-fsl-lib.h | -rw-r--r-- | 3.1 KB |
spi-fsl-lpspi.c | -rw-r--r-- | 23.6 KB |
spi-fsl-qspi.c | -rw-r--r-- | 25.9 KB |
spi-fsl-spi.c | -rw-r--r-- | 21.0 KB |
spi-fsl-spi.h | -rw-r--r-- | 1.8 KB |
spi-geni-qcom.c | -rw-r--r-- | 22.5 KB |
spi-gpio.c | -rw-r--r-- | 12.8 KB |
spi-hisi-kunpeng.c | -rw-r--r-- | 13.8 KB |
spi-hisi-sfc-v3xx.c | -rw-r--r-- | 13.6 KB |
spi-img-spfi.c | -rw-r--r-- | 19.5 KB |
spi-imx.c | -rw-r--r-- | 45.6 KB |
spi-iproc-qspi.c | -rw-r--r-- | 3.8 KB |
spi-jcore.c | -rw-r--r-- | 5.4 KB |
spi-lantiq-ssc.c | -rw-r--r-- | 27.5 KB |
spi-lm70llp.c | -rw-r--r-- | 8.4 KB |
spi-loopback-test.c | -rw-r--r-- | 26.1 KB |
spi-lp8841-rtc.c | -rw-r--r-- | 5.4 KB |
spi-mem.c | -rw-r--r-- | 23.8 KB |
spi-meson-spicc.c | -rw-r--r-- | 22.2 KB |
spi-meson-spifc.c | -rw-r--r-- | 10.9 KB |
spi-mpc512x-psc.c | -rw-r--r-- | 15.9 KB |
spi-mpc52xx-psc.c | -rw-r--r-- | 12.7 KB |
spi-mpc52xx.c | -rw-r--r-- | 14.2 KB |
spi-mt65xx.c | -rw-r--r-- | 24.7 KB |
spi-mt7621.c | -rw-r--r-- | 9.4 KB |
spi-mtk-nor.c | -rw-r--r-- | 23.5 KB |
spi-mux.c | -rw-r--r-- | 4.8 KB |
spi-mxic.c | -rw-r--r-- | 14.7 KB |
spi-mxs.c | -rw-r--r-- | 16.0 KB |
spi-npcm-fiu.c | -rw-r--r-- | 21.4 KB |
spi-npcm-pspi.c | -rw-r--r-- | 10.3 KB |
spi-nxp-fspi.c | -rw-r--r-- | 33.7 KB |
spi-oc-tiny.c | -rw-r--r-- | 7.1 KB |
spi-omap-100k.c | -rw-r--r-- | 11.8 KB |
spi-omap-uwire.c | -rw-r--r-- | 12.6 KB |
spi-omap2-mcspi.c | -rw-r--r-- | 40.6 KB |
spi-orion.c | -rw-r--r-- | 21.2 KB |
spi-pic32-sqi.c | -rw-r--r-- | 18.0 KB |
spi-pic32.c | -rw-r--r-- | 22.3 KB |
spi-pl022.c | -rw-r--r-- | 67.0 KB |
spi-ppc4xx.c | -rw-r--r-- | 11.6 KB |
spi-pxa2xx-dma.c | -rw-r--r-- | 6.3 KB |
spi-pxa2xx-pci.c | -rw-r--r-- | 7.8 KB |
spi-pxa2xx.c | -rw-r--r-- | 51.1 KB |
spi-pxa2xx.h | -rw-r--r-- | 3.3 KB |
spi-qcom-qspi.c | -rw-r--r-- | 16.2 KB |
spi-qup.c | -rw-r--r-- | 33.3 KB |
spi-rb4xx.c | -rw-r--r-- | 5.2 KB |
spi-realtek-rtl.c | -rw-r--r-- | 4.6 KB |
spi-rockchip.c | -rw-r--r-- | 24.0 KB |
spi-rpc-if.c | -rw-r--r-- | 5.0 KB |
spi-rspi.c | -rw-r--r-- | 36.6 KB |
spi-s3c24xx-regs.h | -rw-r--r-- | 1.3 KB |
spi-s3c24xx.c | -rw-r--r-- | 14.4 KB |
spi-s3c64xx.c | -rw-r--r-- | 39.3 KB |
spi-sc18is602.c | -rw-r--r-- | 8.1 KB |
spi-sh-hspi.c | -rw-r--r-- | 6.0 KB |
spi-sh-msiof.c | -rw-r--r-- | 38.8 KB |
spi-sh-sci.c | -rw-r--r-- | 4.7 KB |
spi-sh.c | -rw-r--r-- | 11.1 KB |
spi-sifive.c | -rw-r--r-- | 12.8 KB |
spi-slave-mt27xx.c | -rw-r--r-- | 13.7 KB |
spi-slave-system-control.c | -rw-r--r-- | 3.6 KB |
spi-slave-time.c | -rw-r--r-- | 2.9 KB |
spi-sprd-adi.c | -rw-r--r-- | 14.7 KB |
spi-sprd.c | -rw-r--r-- | 27.0 KB |
spi-st-ssc4.c | -rw-r--r-- | 10.9 KB |
spi-stm32-qspi.c | -rw-r--r-- | 21.6 KB |
spi-stm32.c | -rw-r--r-- | 57.8 KB |
spi-sun4i.c | -rw-r--r-- | 13.5 KB |
spi-sun6i.c | -rw-r--r-- | 18.3 KB |
spi-synquacer.c | -rw-r--r-- | 21.9 KB |
spi-tegra114.c | -rw-r--r-- | 41.5 KB |
spi-tegra20-sflash.c | -rw-r--r-- | 15.7 KB |
spi-tegra20-slink.c | -rw-r--r-- | 33.9 KB |
spi-tegra210-quad.c | -rw-r--r-- | 38.0 KB |
spi-test.h | -rw-r--r-- | 4.9 KB |
spi-ti-qspi.c | -rw-r--r-- | 22.4 KB |
spi-tle62x0.c | -rw-r--r-- | 7.0 KB |
spi-topcliff-pch.c | -rw-r--r-- | 45.0 KB |
spi-uniphier.c | -rw-r--r-- | 19.4 KB |
spi-xcomm.c | -rw-r--r-- | 5.8 KB |
spi-xilinx.c | -rw-r--r-- | 14.4 KB |
spi-xlp.c | -rw-r--r-- | 11.2 KB |
spi-xtensa-xtfpga.c | -rw-r--r-- | 3.7 KB |
spi-zynq-qspi.c | -rw-r--r-- | 22.8 KB |
spi-zynqmp-gqspi.c | -rw-r--r-- | 37.0 KB |
spi.c | -rw-r--r-- | 115.2 KB |
spidev.c | -rw-r--r-- | 21.7 KB |
Computing file changes ...