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 |
---|---|---|
acpica | ||
apei | ||
arm64 | ||
dptf | ||
nfit | ||
numa | ||
pmic | ||
x86 | ||
Kconfig | -rw-r--r-- | 17.7 KB |
Makefile | -rw-r--r-- | 3.6 KB |
ac.c | -rw-r--r-- | 8.3 KB |
acpi_adxl.c | -rw-r--r-- | 4.7 KB |
acpi_amba.c | -rw-r--r-- | 3.1 KB |
acpi_apd.c | -rw-r--r-- | 6.3 KB |
acpi_cmos_rtc.c | -rw-r--r-- | 2.0 KB |
acpi_configfs.c | -rw-r--r-- | 6.4 KB |
acpi_dbg.c | -rw-r--r-- | 17.8 KB |
acpi_extlog.c | -rw-r--r-- | 8.3 KB |
acpi_fpdt.c | -rw-r--r-- | 6.5 KB |
acpi_ipmi.c | -rw-r--r-- | 16.5 KB |
acpi_lpat.c | -rw-r--r-- | 4.0 KB |
acpi_lpit.c | -rw-r--r-- | 4.2 KB |
acpi_lpss.c | -rw-r--r-- | 35.3 KB |
acpi_memhotplug.c | -rw-r--r-- | 9.2 KB |
acpi_pad.c | -rw-r--r-- | 11.8 KB |
acpi_platform.c | -rw-r--r-- | 4.7 KB |
acpi_pnp.c | -rw-r--r-- | 13.6 KB |
acpi_processor.c | -rw-r--r-- | 22.7 KB |
acpi_tad.c | -rw-r--r-- | 15.3 KB |
acpi_video.c | -rw-r--r-- | 59.2 KB |
acpi_watchdog.c | -rw-r--r-- | 4.5 KB |
battery.c | -rw-r--r-- | 37.5 KB |
bgrt.c | -rw-r--r-- | 2.3 KB |
blacklist.c | -rw-r--r-- | 3.7 KB |
bus.c | -rw-r--r-- | 35.2 KB |
button.c | -rw-r--r-- | 17.0 KB |
container.c | -rw-r--r-- | 2.6 KB |
cppc_acpi.c | -rw-r--r-- | 40.2 KB |
custom_method.c | -rw-r--r-- | 2.1 KB |
debugfs.c | -rw-r--r-- | 391 bytes |
device_pm.c | -rw-r--r-- | 38.9 KB |
device_sysfs.c | -rw-r--r-- | 16.1 KB |
dock.c | -rw-r--r-- | 16.3 KB |
ec.c | -rw-r--r-- | 58.4 KB |
ec_sys.c | -rw-r--r-- | 3.1 KB |
event.c | -rw-r--r-- | 4.2 KB |
evged.c | -rw-r--r-- | 4.6 KB |
fan.c | -rw-r--r-- | 12.2 KB |
fan.h | -rw-r--r-- | 414 bytes |
glue.c | -rw-r--r-- | 8.7 KB |
hed.c | -rw-r--r-- | 1.9 KB |
internal.h | -rw-r--r-- | 9.3 KB |
ioapic.c | -rw-r--r-- | 5.9 KB |
irq.c | -rw-r--r-- | 9.0 KB |
nvs.c | -rw-r--r-- | 4.6 KB |
osi.c | -rw-r--r-- | 13.1 KB |
osl.c | -rw-r--r-- | 42.9 KB |
pci_irq.c | -rw-r--r-- | 13.1 KB |
pci_link.c | -rw-r--r-- | 22.9 KB |
pci_mcfg.c | -rw-r--r-- | 9.1 KB |
pci_root.c | -rw-r--r-- | 25.6 KB |
pci_slot.c | -rw-r--r-- | 4.7 KB |
platform_profile.c | -rw-r--r-- | 4.1 KB |
power.c | -rw-r--r-- | 26.0 KB |
pptt.c | -rw-r--r-- | 23.9 KB |
prmt.c | -rw-r--r-- | 7.9 KB |
proc.c | -rw-r--r-- | 3.4 KB |
processor_core.c | -rw-r--r-- | 9.1 KB |
processor_driver.c | -rw-r--r-- | 8.8 KB |
processor_idle.c | -rw-r--r-- | 35.1 KB |
processor_pdc.c | -rw-r--r-- | 4.6 KB |
processor_perflib.c | -rw-r--r-- | 18.9 KB |
processor_thermal.c | -rw-r--r-- | 5.9 KB |
processor_throttling.c | -rw-r--r-- | 30.2 KB |
property.c | -rw-r--r-- | 36.8 KB |
reboot.c | -rw-r--r-- | 2.0 KB |
resource.c | -rw-r--r-- | 22.8 KB |
sbs.c | -rw-r--r-- | 19.0 KB |
sbshc.c | -rw-r--r-- | 7.1 KB |
sbshc.h | -rw-r--r-- | 946 bytes |
scan.c | -rw-r--r-- | 65.9 KB |
sleep.c | -rw-r--r-- | 25.7 KB |
sleep.h | -rw-r--r-- | 916 bytes |
spcr.c | -rw-r--r-- | 5.8 KB |
sysfs.c | -rw-r--r-- | 26.5 KB |
tables.c | -rw-r--r-- | 23.1 KB |
thermal.c | -rw-r--r-- | 31.0 KB |
tiny-power-button.c | -rw-r--r-- | 1.2 KB |
utils.c | -rw-r--r-- | 25.2 KB |
video_detect.c | -rw-r--r-- | 14.7 KB |
viot.c | -rw-r--r-- | 8.7 KB |
wakeup.c | -rw-r--r-- | 4.6 KB |
Computing file changes ...