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()
  ...
2 parent s dd9c7df + b7eb335
History
File Mode Size
aacraid
aic7xxx
aic94xx
arcmsr
arm
be2iscsi
bfa
bnx2fc
bnx2i
csiostor
cxgbi
cxlflash
device_handler
dpt
elx
esas2r
fcoe
fnic
hisi_sas
ibmvscsi
ibmvscsi_tgt
isci
libfc
libsas
lpfc
megaraid
mpi3mr
mpt3sas
mvsas
pcmcia
pm8001
qedf
qedi
qla2xxx
qla4xxx
smartpqi
snic
sym53c8xx_2
ufs
.gitignore -rw-r--r-- 70 bytes
3w-9xxx.c -rw-r--r-- 74.2 KB
3w-9xxx.h -rw-r--r-- 25.0 KB
3w-sas.c -rw-r--r-- 57.1 KB
3w-sas.h -rw-r--r-- 13.3 KB
3w-xxxx.c -rw-r--r-- 82.1 KB
3w-xxxx.h -rw-r--r-- 15.8 KB
53c700.c -rw-r--r-- 66.8 KB
53c700.h -rw-r--r-- 16.3 KB
53c700.scr -rw-r--r-- 10.6 KB
53c700_d.h_shipped -rw-r--r-- 28.2 KB
BusLogic.c -rw-r--r-- 121.5 KB
BusLogic.h -rw-r--r-- 33.4 KB
FlashPoint.c -rw-r--r-- 192.1 KB
Kconfig -rw-r--r-- 50.9 KB
Makefile -rw-r--r-- 7.7 KB
NCR5380.c -rw-r--r-- 70.4 KB
NCR5380.h -rw-r--r-- 11.2 KB
a100u2w.c -rw-r--r-- 35.7 KB
a100u2w.h -rw-r--r-- 16.5 KB
a2091.c -rw-r--r-- 6.1 KB
a2091.h -rw-r--r-- 1.5 KB
a3000.c -rw-r--r-- 6.5 KB
a3000.h -rw-r--r-- 1.6 KB
a4000t.c -rw-r--r-- 3.2 KB
advansys.c -rw-r--r-- 337.1 KB
aha152x.c -rw-r--r-- 82.5 KB
aha152x.h -rw-r--r-- 10.0 KB
aha1542.c -rw-r--r-- 30.4 KB
aha1542.h -rw-r--r-- 3.7 KB
aha1740.c -rw-r--r-- 18.9 KB
aha1740.h -rw-r--r-- 4.9 KB
am53c974.c -rw-r--r-- 12.7 KB
atari_scsi.c -rw-r--r-- 26.5 KB
atp870u.c -rw-r--r-- 59.0 KB
atp870u.h -rw-r--r-- 1.4 KB
bvme6000_scsi.c -rw-r--r-- 3.3 KB
ch.c -rw-r--r-- 25.4 KB
constants.c -rw-r--r-- 15.0 KB
dc395x.c -rw-r--r-- 135.2 KB
dc395x.h -rw-r--r-- 24.0 KB
dmx3191d.c -rw-r--r-- 3.6 KB
dpt_i2o.c -rw-r--r-- 90.6 KB
dpti.h -rw-r--r-- 11.1 KB
esp_scsi.c -rw-r--r-- 68.7 KB
esp_scsi.h -rw-r--r-- 22.0 KB
fdomain.c -rw-r--r-- 15.9 KB
fdomain.h -rw-r--r-- 5.1 KB
fdomain_isa.c -rw-r--r-- 6.6 KB
fdomain_pci.c -rw-r--r-- 1.4 KB
g_NCR5380.c -rw-r--r-- 21.0 KB
gvp11.c -rw-r--r-- 10.1 KB
gvp11.h -rw-r--r-- 1.3 KB
hosts.c -rw-r--r-- 18.0 KB
hpsa.c -rw-r--r-- 273.7 KB
hpsa.h -rw-r--r-- 19.9 KB
hpsa_cmd.h -rw-r--r-- 28.9 KB
hptiop.c -rw-r--r-- 45.3 KB
hptiop.h -rw-r--r-- 9.2 KB
imm.c -rw-r--r-- 29.2 KB
imm.h -rw-r--r-- 5.0 KB
initio.c -rw-r--r-- 79.7 KB
initio.h -rw-r--r-- 28.6 KB
ipr.c -rw-r--r-- 302.1 KB
ipr.h -rw-r--r-- 50.9 KB
ips.c -rw-r--r-- 230.9 KB
ips.h -rw-r--r-- 40.5 KB
iscsi_boot_sysfs.c -rw-r--r-- 18.2 KB
iscsi_tcp.c -rw-r--r-- 28.5 KB
iscsi_tcp.h -rw-r--r-- 1.5 KB
jazz_esp.c -rw-r--r-- 4.6 KB
lasi700.c -rw-r--r-- 4.0 KB
libiscsi.c -rw-r--r-- 101.2 KB
libiscsi_tcp.c -rw-r--r-- 33.0 KB
mac53c94.c -rw-r--r-- 14.9 KB
mac53c94.h -rw-r--r-- 5.0 KB
mac_esp.c -rw-r--r-- 11.5 KB
mac_scsi.c -rw-r--r-- 15.5 KB
megaraid.c -rw-r--r-- 105.1 KB
megaraid.h -rw-r--r-- 26.5 KB
mesh.c -rw-r--r-- 52.8 KB
mesh.h -rw-r--r-- 3.9 KB
mvme147.c -rw-r--r-- 3.7 KB
mvme147.h -rw-r--r-- 504 bytes
mvme16x_scsi.c -rw-r--r-- 3.7 KB
mvumi.c -rw-r--r-- 68.4 KB
mvumi.h -rw-r--r-- 11.6 KB
myrb.c -rw-r--r-- 94.4 KB
myrb.h -rw-r--r-- 30.2 KB
myrs.c -rw-r--r-- 89.0 KB
myrs.h -rw-r--r-- 36.9 KB
ncr53c8xx.c -rw-r--r-- 210.0 KB
ncr53c8xx.h -rw-r--r-- 38.9 KB
nsp32.c -rw-r--r-- 86.0 KB
nsp32.h -rw-r--r-- 20.8 KB
nsp32_debug.c -rw-r--r-- 7.3 KB
nsp32_io.h -rw-r--r-- 5.9 KB
pmcraid.c -rw-r--r-- 162.9 KB
pmcraid.h -rw-r--r-- 36.2 KB
ppa.c -rw-r--r-- 25.9 KB
ppa.h -rw-r--r-- 5.0 KB
ps3rom.c -rw-r--r-- 10.4 KB
qla1280.c -rw-r--r-- 122.1 KB
qla1280.h -rw-r--r-- 34.4 KB
qlogicfas.c -rw-r--r-- 5.5 KB
qlogicfas408.c -rw-r--r-- 14.8 KB
qlogicfas408.h -rw-r--r-- 4.6 KB
qlogicpti.c -rw-r--r-- 40.0 KB
qlogicpti.h -rw-r--r-- 18.8 KB
raid_class.c -rw-r--r-- 7.7 KB
script_asm.pl -rw-r--r-- 27.8 KB
scsi.c -rw-r--r-- 22.2 KB
scsi.h -rw-r--r-- 1.1 KB
scsi_common.c -rw-r--r-- 8.7 KB
scsi_debug.c -rw-r--r-- 222.7 KB
scsi_debugfs.c -rw-r--r-- 1.4 KB
scsi_debugfs.h -rw-r--r-- 132 bytes
scsi_devinfo.c -rw-r--r-- 28.8 KB
scsi_dh.c -rw-r--r-- 9.1 KB
scsi_error.c -rw-r--r-- 69.4 KB
scsi_ioctl.c -rw-r--r-- 8.6 KB
scsi_lib.c -rw-r--r-- 83.8 KB
scsi_lib_dma.c -rw-r--r-- 1.2 KB
scsi_logging.c -rw-r--r-- 11.2 KB
scsi_logging.h -rw-r--r-- 3.6 KB
scsi_netlink.c -rw-r--r-- 2.9 KB
scsi_pm.c -rw-r--r-- 8.0 KB
scsi_priv.h -rw-r--r-- 6.4 KB
scsi_proc.c -rw-r--r-- 11.1 KB
scsi_sas_internal.h -rw-r--r-- 1.5 KB
scsi_scan.c -rw-r--r-- 54.9 KB
scsi_sysctl.c -rw-r--r-- 982 bytes
scsi_sysfs.c -rw-r--r-- 42.2 KB
scsi_trace.c -rw-r--r-- 8.3 KB
scsi_transport_api.h -rw-r--r-- 184 bytes
scsi_transport_fc.c -rw-r--r-- 128.6 KB
scsi_transport_iscsi.c -rw-r--r-- 147.5 KB
scsi_transport_sas.c -rw-r--r-- 51.1 KB
scsi_transport_spi.c -rw-r--r-- 44.1 KB
scsi_transport_srp.c -rw-r--r-- 24.5 KB
scsicam.c -rw-r--r-- 7.6 KB
sd.c -rw-r--r-- 100.2 KB
sd.h -rw-r--r-- 6.9 KB
sd_dif.c -rw-r--r-- 1.9 KB
sd_zbc.c -rw-r--r-- 22.1 KB
sense_codes.h -rw-r--r-- 42.8 KB
ses.c -rw-r--r-- 19.8 KB
sg.c -rw-r--r-- 70.7 KB
sgiwd93.c -rw-r--r-- 7.8 KB
sim710.c -rw-r--r-- 5.8 KB
sni_53c710.c -rw-r--r-- 2.9 KB
sr.c -rw-r--r-- 26.2 KB
sr.h -rw-r--r-- 2.7 KB
sr_ioctl.c -rw-r--r-- 14.6 KB
sr_vendor.c -rw-r--r-- 8.8 KB
st.c -rw-r--r-- 130.3 KB
st.h -rw-r--r-- 7.2 KB
st_options.h -rw-r--r-- 3.9 KB
stex.c -rw-r--r-- 48.1 KB
storvsc_drv.c -rw-r--r-- 58.7 KB
sun3_scsi.c -rw-r--r-- 16.0 KB
sun3_scsi_vme.c -rw-r--r-- 46 bytes
sun3x_esp.c -rw-r--r-- 6.3 KB
sun_esp.c -rw-r--r-- 13.2 KB
virtio_scsi.c -rw-r--r-- 26.6 KB
vmw_pvscsi.c -rw-r--r-- 43.1 KB
vmw_pvscsi.h -rw-r--r-- 13.3 KB
wd33c93.c -rw-r--r-- 65.1 KB
wd33c93.h -rw-r--r-- 10.6 KB
wd719x.c -rw-r--r-- 27.1 KB
wd719x.h -rw-r--r-- 9.5 KB
xen-scsifront.c -rw-r--r-- 28.5 KB
zalon.c -rw-r--r-- 5.0 KB
zorro7xx.c -rw-r--r-- 4.5 KB
zorro_esp.c -rw-r--r-- 24.7 KB

back to top