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 |
---|---|---|
88pm860x-ts.c | -rw-r--r-- | 8.1 KB |
Kconfig | -rw-r--r-- | 36.9 KB |
Makefile | -rw-r--r-- | 5.5 KB |
ad7877.c | -rw-r--r-- | 19.6 KB |
ad7879-i2c.c | -rw-r--r-- | 1.7 KB |
ad7879-spi.c | -rw-r--r-- | 1.7 KB |
ad7879.c | -rw-r--r-- | 15.1 KB |
ad7879.h | -rw-r--r-- | 418 bytes |
ads7846.c | -rw-r--r-- | 35.7 KB |
ar1021_i2c.c | -rw-r--r-- | 4.3 KB |
atmel_mxt_ts.c | -rw-r--r-- | 79.2 KB |
auo-pixcir-ts.c | -rw-r--r-- | 16.7 KB |
bcm_iproc_tsc.c | -rw-r--r-- | 13.6 KB |
bu21013_ts.c | -rw-r--r-- | 16.2 KB |
bu21029_ts.c | -rw-r--r-- | 15.3 KB |
chipone_icn8318.c | -rw-r--r-- | 6.7 KB |
chipone_icn8505.c | -rw-r--r-- | 12.8 KB |
colibri-vf50-ts.c | -rw-r--r-- | 9.2 KB |
cy8ctma140.c | -rw-r--r-- | 8.5 KB |
cy8ctmg110_ts.c | -rw-r--r-- | 6.4 KB |
cyttsp4_core.c | -rw-r--r-- | 55.4 KB |
cyttsp4_core.h | -rw-r--r-- | 10.0 KB |
cyttsp4_i2c.c | -rw-r--r-- | 1.8 KB |
cyttsp4_spi.c | -rw-r--r-- | 4.5 KB |
cyttsp_core.c | -rw-r--r-- | 16.7 KB |
cyttsp_core.h | -rw-r--r-- | 3.0 KB |
cyttsp_i2c.c | -rw-r--r-- | 1.9 KB |
cyttsp_i2c_common.c | -rw-r--r-- | 1.9 KB |
cyttsp_spi.c | -rw-r--r-- | 4.6 KB |
da9034-ts.c | -rw-r--r-- | 8.1 KB |
da9052_tsi.c | -rw-r--r-- | 8.1 KB |
dynapro.c | -rw-r--r-- | 4.4 KB |
edt-ft5x06.c | -rw-r--r-- | 35.8 KB |
eeti_ts.c | -rw-r--r-- | 6.9 KB |
egalax_ts.c | -rw-r--r-- | 6.8 KB |
egalax_ts_serial.c | -rw-r--r-- | 4.3 KB |
ektf2127.c | -rw-r--r-- | 8.7 KB |
elants_i2c.c | -rw-r--r-- | 39.9 KB |
elo.c | -rw-r--r-- | 8.5 KB |
exc3000.c | -rw-r--r-- | 10.6 KB |
fsl-imx25-tcq.c | -rw-r--r-- | 15.1 KB |
fujitsu_ts.c | -rw-r--r-- | 3.8 KB |
goodix.c | -rw-r--r-- | 36.0 KB |
gunze.c | -rw-r--r-- | 3.7 KB |
hampshire.c | -rw-r--r-- | 4.5 KB |
hideep.c | -rw-r--r-- | 25.3 KB |
hp680_ts_input.c | -rw-r--r-- | 2.9 KB |
htcpen.c | -rw-r--r-- | 5.5 KB |
hycon-hy46xx.c | -rw-r--r-- | 15.0 KB |
ili210x.c | -rw-r--r-- | 12.4 KB |
ilitek_ts_i2c.c | -rw-r--r-- | 15.3 KB |
imx6ul_tsc.c | -rw-r--r-- | 13.8 KB |
inexio.c | -rw-r--r-- | 4.4 KB |
ipaq-micro-ts.c | -rw-r--r-- | 3.7 KB |
iqs5xx.c | -rw-r--r-- | 25.5 KB |
jornada720_ts.c | -rw-r--r-- | 4.1 KB |
lpc32xx_ts.c | -rw-r--r-- | 9.8 KB |
mainstone-wm97xx.c | -rw-r--r-- | 7.3 KB |
max11801_ts.c | -rw-r--r-- | 6.8 KB |
mc13783_ts.c | -rw-r--r-- | 6.2 KB |
mcs5000_ts.c | -rw-r--r-- | 7.7 KB |
melfas_mip4.c | -rw-r--r-- | 37.6 KB |
migor_ts.c | -rw-r--r-- | 5.4 KB |
mk712.c | -rw-r--r-- | 5.6 KB |
mms114.c | -rw-r--r-- | 15.3 KB |
msg2638.c | -rw-r--r-- | 7.9 KB |
mtouch.c | -rw-r--r-- | 4.8 KB |
mxs-lradc-ts.c | -rw-r--r-- | 19.1 KB |
pcap_ts.c | -rw-r--r-- | 6.3 KB |
penmount.c | -rw-r--r-- | 6.8 KB |
pixcir_i2c_ts.c | -rw-r--r-- | 14.7 KB |
raspberrypi-ts.c | -rw-r--r-- | 5.6 KB |
raydium_i2c_ts.c | -rw-r--r-- | 29.3 KB |
resistive-adc-touch.c | -rw-r--r-- | 7.4 KB |
rohm_bu21023.c | -rw-r--r-- | 26.7 KB |
s3c2410_ts.c | -rw-r--r-- | 11.4 KB |
s6sy761.c | -rw-r--r-- | 13.3 KB |
silead.c | -rw-r--r-- | 16.7 KB |
sis_i2c.c | -rw-r--r-- | 9.8 KB |
st1232.c | -rw-r--r-- | 9.3 KB |
stmfts.c | -rw-r--r-- | 19.9 KB |
stmpe-ts.c | -rw-r--r-- | 9.8 KB |
sun4i-ts.c | -rw-r--r-- | 11.5 KB |
sur40.c | -rw-r--r-- | 31.7 KB |
surface3_spi.c | -rw-r--r-- | 9.7 KB |
sx8654.c | -rw-r--r-- | 11.6 KB |
ti_am335x_tsc.c | -rw-r--r-- | 13.8 KB |
touchit213.c | -rw-r--r-- | 5.5 KB |
touchright.c | -rw-r--r-- | 3.7 KB |
touchwin.c | -rw-r--r-- | 3.9 KB |
tps6507x-ts.c | -rw-r--r-- | 6.9 KB |
ts4800-ts.c | -rw-r--r-- | 5.1 KB |
tsc2004.c | -rw-r--r-- | 1.8 KB |
tsc2005.c | -rw-r--r-- | 2.1 KB |
tsc2007.h | -rw-r--r-- | 2.4 KB |
tsc2007_core.c | -rw-r--r-- | 10.3 KB |
tsc2007_iio.c | -rw-r--r-- | 3.2 KB |
tsc200x-core.c | -rw-r--r-- | 14.7 KB |
tsc200x-core.h | -rw-r--r-- | 2.5 KB |
tsc40.c | -rw-r--r-- | 3.6 KB |
ucb1400_ts.c | -rw-r--r-- | 12.1 KB |
usbtouchscreen.c | -rw-r--r-- | 45.2 KB |
wacom_i2c.c | -rw-r--r-- | 5.9 KB |
wacom_w8001.c | -rw-r--r-- | 16.8 KB |
wdt87xx_i2c.c | -rw-r--r-- | 27.9 KB |
wm831x-ts.c | -rw-r--r-- | 11.1 KB |
wm9705.c | -rw-r--r-- | 9.0 KB |
wm9712.c | -rw-r--r-- | 11.7 KB |
wm9713.c | -rw-r--r-- | 12.0 KB |
wm97xx-core.c | -rw-r--r-- | 23.2 KB |
zet6223.c | -rw-r--r-- | 5.7 KB |
zforce_ts.c | -rw-r--r-- | 22.9 KB |
zinitix.c | -rw-r--r-- | 13.7 KB |
zylonite-wm97xx.c | -rw-r--r-- | 5.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...