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-- | 16.2 KB |
Makefile | -rw-r--r-- | 2.9 KB |
al_mc_edac.c | -rw-r--r-- | 9.4 KB |
altera_edac.c | -rw-r--r-- | 59.5 KB |
altera_edac.h | -rw-r--r-- | 12.9 KB |
amd64_edac.c | -rw-r--r-- | 101.2 KB |
amd64_edac.h | -rw-r--r-- | 14.6 KB |
amd76x_edac.c | -rw-r--r-- | 9.3 KB |
amd8111_edac.c | -rw-r--r-- | 15.9 KB |
amd8111_edac.h | -rw-r--r-- | 3.6 KB |
amd8131_edac.c | -rw-r--r-- | 9.9 KB |
amd8131_edac.h | -rw-r--r-- | 3.1 KB |
armada_xp_edac.c | -rw-r--r-- | 18.3 KB |
aspeed_edac.c | -rw-r--r-- | 9.9 KB |
bluefield_edac.c | -rw-r--r-- | 9.1 KB |
cell_edac.c | -rw-r--r-- | 7.7 KB |
cpc925_edac.c | -rw-r--r-- | 30.6 KB |
debugfs.c | -rw-r--r-- | 3.9 KB |
dmc520_edac.c | -rw-r--r-- | 16.4 KB |
e752x_edac.c | -rw-r--r-- | 40.7 KB |
e7xxx_edac.c | -rw-r--r-- | 16.1 KB |
edac_device.c | -rw-r--r-- | 18.0 KB |
edac_device.h | -rw-r--r-- | 10.1 KB |
edac_device_sysfs.c | -rw-r--r-- | 23.3 KB |
edac_mc.c | -rw-r--r-- | 28.3 KB |
edac_mc.h | -rw-r--r-- | 7.7 KB |
edac_mc_sysfs.c | -rw-r--r-- | 25.8 KB |
edac_module.c | -rw-r--r-- | 3.3 KB |
edac_module.h | -rw-r--r-- | 4.7 KB |
edac_pci.c | -rw-r--r-- | 7.6 KB |
edac_pci.h | -rw-r--r-- | 6.8 KB |
edac_pci_sysfs.c | -rw-r--r-- | 18.9 KB |
fsl_ddr_edac.c | -rw-r--r-- | 15.5 KB |
fsl_ddr_edac.h | -rw-r--r-- | 2.3 KB |
ghes_edac.c | -rw-r--r-- | 16.2 KB |
highbank_l2_edac.c | -rw-r--r-- | 3.4 KB |
highbank_mc_edac.c | -rw-r--r-- | 6.9 KB |
i10nm_base.c | -rw-r--r-- | 12.3 KB |
i3000_edac.c | -rw-r--r-- | 13.7 KB |
i3200_edac.c | -rw-r--r-- | 12.7 KB |
i5000_edac.c | -rw-r--r-- | 42.1 KB |
i5100_edac.c | -rw-r--r-- | 30.0 KB |
i5400_edac.c | -rw-r--r-- | 39.8 KB |
i7300_edac.c | -rw-r--r-- | 35.1 KB |
i7core_edac.c | -rw-r--r-- | 61.5 KB |
i82443bxgx_edac.c | -rw-r--r-- | 13.6 KB |
i82860_edac.c | -rw-r--r-- | 9.1 KB |
i82875p_edac.c | -rw-r--r-- | 14.6 KB |
i82975x_edac.c | -rw-r--r-- | 18.1 KB |
ie31200_edac.c | -rw-r--r-- | 19.2 KB |
igen6_edac.c | -rw-r--r-- | 31.1 KB |
layerscape_edac.c | -rw-r--r-- | 1.6 KB |
mce_amd.c | -rw-r--r-- | 31.5 KB |
mce_amd.h | -rw-r--r-- | 1.6 KB |
mpc85xx_edac.c | -rw-r--r-- | 20.1 KB |
mpc85xx_edac.h | -rw-r--r-- | 3.0 KB |
octeon_edac-l2c.c | -rw-r--r-- | 5.3 KB |
octeon_edac-lmc.c | -rw-r--r-- | 8.5 KB |
octeon_edac-pc.c | -rw-r--r-- | 3.5 KB |
octeon_edac-pci.c | -rw-r--r-- | 2.7 KB |
pasemi_edac.c | -rw-r--r-- | 8.0 KB |
pnd2_edac.c | -rw-r--r-- | 42.8 KB |
pnd2_edac.h | -rw-r--r-- | 5.6 KB |
ppc4xx_edac.c | -rw-r--r-- | 39.1 KB |
ppc4xx_edac.h | -rw-r--r-- | 7.0 KB |
qcom_edac.c | -rw-r--r-- | 10.9 KB |
r82600_edac.c | -rw-r--r-- | 11.7 KB |
sb_edac.c | -rw-r--r-- | 93.9 KB |
sifive_edac.c | -rw-r--r-- | 2.5 KB |
skx_base.c | -rw-r--r-- | 19.4 KB |
skx_common.c | -rw-r--r-- | 17.7 KB |
skx_common.h | -rw-r--r-- | 4.9 KB |
synopsys_edac.c | -rw-r--r-- | 37.5 KB |
thunderx_edac.c | -rw-r--r-- | 52.8 KB |
ti_edac.c | -rw-r--r-- | 8.6 KB |
wq.c | -rw-r--r-- | 823 bytes |
x38_edac.c | -rw-r--r-- | 11.9 KB |
xgene_edac.c | -rw-r--r-- | 59.0 KB |
Computing file changes ...