linux-samsung-r9q2/drivers/net/wireless/mediatek/mt76
Linus Torvalds e9338abf0e fallthrough fixes for Clang for 5.14-rc2
Hi Linus,
 
 Please, pull the following patches that fix many fall-through
 warnings when building with Clang and -Wimplicit-fallthrough.
 
 This pull-request also contains the patch for Makefile that 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. Notice that 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 have to 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 -Wimplicit-fallthrough for Clang. :)
 
 Thanks!
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEkmRahXBSurMIg1YvRwW0y0cG2zEFAmDvPV0ACgkQRwW0y0cG
 2zGJ1xAAsbSN8I+ESxFCKi4UwQC71988isb0rHGL6rQPBbEYD2bbI+82aGu6WH8z
 2ZVQZa5x3tUoIsqR2GMK5Npn1dFvuNWGZkYzlgjAp+FgzaULCLUc4NW9DEWU/Kbd
 UBz8ilXL7tUAlDalUYjXAVVTxMnRTZ+BDCbEmIdRZ5X/pMlD2xHeMGG4kh8/cHjJ
 +mqFwCFPZoyLJzPBnm37OEfIr8JxrLZAo1gfmz5sxfmBdYDY3hjV/BVgP8h0bkY9
 ITaq0LMEAPMXvU+4DP3DxuqzRr9COYMcddmbaWwsXPd7UAuoXwGLvqx7JE0QqY3g
 J80w4/hXqEa4o4/fUAsfjYEQoNTEnhl0iGskBJD2xy5Lj17/m4aOSL44ibr2Ag67
 yfJPWi9tooYELEGNobPVHPuqk4ts6amKTOKqHWMBEcTEOIGzaGWPEjRoyaMivfZ3
 G3ZbEPEYERcJRizm63UbciLeslGsxb6tdYQEy5VI8Wa7caz9Ci9HT+jjS7Vm2fuq
 1zg+vIgwuSxvwxrSV/PDTRcQm9EM/MoRL0D4jbr7gtYD6KNwH8Vo6M21CoaB9gH3
 FgMiCT4zy9KiONjVDJKkjtzuk+9OwpI5AAg0/fAQ4Ak9TzUN3Xfg7HpytETCIJ0Z
 Ii3Jqwe+3IRTNq94ZTIiX/0hT7i5GsPxUfPzI2vwttCJn9ctUcM=
 =XVNN
 -----END PGP SIGNATURE-----

Merge tag 'Wimplicit-fallthrough-clang-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux

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()
  ...
2021-07-15 13:57:31 -07:00
..
mt76x0 mt76: mt76x0: use dev_debug instead of dev_err for hw_rf_ctrl 2021-06-19 09:22:44 +02:00
mt76x2 mt76: use PCI_VENDOR_ID_MEDIATEK to avoid open coded 2021-04-11 18:50:39 +02:00
mt7603 mt76: fix iv and CCMP header insertion 2021-06-19 09:22:51 +02:00
mt7615 mt76: mt7615: set macwork timeout according to runtime-pm 2021-06-19 09:22:51 +02:00
mt7915 mt76: disable TWT capabilities for the moment 2021-06-19 09:22:51 +02:00
mt7921 fallthrough fixes for Clang for 5.14-rc2 2021-07-15 13:57:31 -07:00
agg-rx.c mt76: report Rx timestamp 2021-04-12 23:07:24 +02:00
debugfs.c mt76: debugfs: introduce napi_threaded node 2021-04-21 20:55:56 +02:00
dma.c mt76: dma: use ieee80211_tx_status_ext to free packets when tx fails 2021-06-17 18:33:53 +02:00
dma.h mt76: dma: add the capability to define a custom rx napi poll routine 2021-04-21 20:55:52 +02:00
eeprom.c mt76: mt7915: add support for applying pre-calibration data 2021-04-21 11:42:22 +02:00
Kconfig mt76: mt7921: introduce mt7921e support 2021-01-29 18:09:57 +01:00
mac80211.c mt76: make mt76_update_survey() per phy 2021-06-19 09:22:49 +02:00
Makefile mt76: mt7921: introduce mt7921e support 2021-01-29 18:09:57 +01:00
mcu.c mt76: mt7921: get rid of mcu_reset function pointer 2021-04-21 20:55:55 +02:00
mmio.c mt76: mt7615: rework IRQ handling to prepare for MSI support 2020-05-12 19:52:31 +02:00
mt76.h mt76: fix iv and CCMP header insertion 2021-06-19 09:22:51 +02:00
mt76_connac.h mt76: mt7921: fix the coredump is being truncated 2021-06-19 09:22:51 +02:00
mt76_connac_mac.c mt76: mt7663s: enable runtime-pm 2021-06-19 09:22:51 +02:00
mt76_connac_mcu.c mt76: mt7921: limit txpower according to userlevel power 2021-06-19 09:22:50 +02:00
mt76_connac_mcu.h mt76: mt7921: enable deep sleep at runtime 2021-06-19 09:22:50 +02:00
mt76x02.h mt76: move chainmask in mt76_phy 2021-01-26 20:07:48 +01:00
mt76x02_beacon.c mt76: mt76x02: minor mt76x02_mac_set_beacon optimization 2020-02-14 10:06:02 +01:00
mt76x02_debugfs.c mt76: Convert to DEFINE_SHOW_ATTRIBUTE 2020-09-24 18:10:20 +02:00
mt76x02_dfs.c wireless: mt76: convert tasklets to use new tasklet_setup() API 2020-12-04 13:46:16 +01:00
mt76x02_dfs.h mt76: switch to SPDX tag instead of verbose boilerplate text 2019-09-05 17:42:31 +02:00
mt76x02_dma.h mt76: convert from tx tasklet to tx worker thread 2020-09-24 18:10:18 +02:00
mt76x02_eeprom.c mt76: move band capabilities in mt76_phy 2020-12-04 14:31:15 +01:00
mt76x02_eeprom.h mt76: switch to SPDX tag instead of verbose boilerplate text 2019-09-05 17:42:31 +02:00
mt76x02_mac.c mt76: fix iv and CCMP header insertion 2021-06-19 09:22:51 +02:00
mt76x02_mac.h mt76: make mt76_update_survey() per phy 2021-06-19 09:22:49 +02:00
mt76x02_mcu.c mt76: improve mcu error logging 2021-04-21 11:42:22 +02:00
mt76x02_mcu.h mt76: implement .mcu_parse_response in struct mt76_mcu_ops 2020-12-04 13:46:14 +01:00
mt76x02_mmio.c mt76: dma: add the capability to define a custom rx napi poll routine 2021-04-21 20:55:52 +02:00
mt76x02_phy.c mt76: move chainmask in mt76_phy 2021-01-26 20:07:48 +01:00
mt76x02_phy.h mt76: move channel state to struct mt76_phy 2020-02-14 10:03:08 +01:00
mt76x02_regs.h mt76: fix iv and CCMP header insertion 2021-06-19 09:22:51 +02:00
mt76x02_trace.c mt76: switch to SPDX tag instead of verbose boilerplate text 2019-09-05 17:42:31 +02:00
mt76x02_trace.h mt76: move mac_txdone tracepoint in mt76 module 2020-02-14 10:06:03 +01:00
mt76x02_txrx.c mt76: Introduce mt76_mcu data structure 2020-02-14 10:17:46 +01:00
mt76x02_usb.h mt76: remove qid argument to drv->tx_complete_skb 2020-09-24 18:10:17 +02:00
mt76x02_usb_core.c mt76: move tx hw data queues in mt76_phy 2020-12-04 14:31:15 +01:00
mt76x02_usb_mcu.c mt76: implement .mcu_parse_response in struct mt76_mcu_ops 2020-12-04 13:46:14 +01:00
mt76x02_util.c mt76: move mt76_rates in mt76 module 2021-06-19 09:22:37 +02:00
pci.c mt76: fix include in pci.h 2020-07-21 19:01:14 +02:00
sdio.c mt76: sdio: do not run mt76_txq_schedule directly 2021-06-19 09:22:51 +02:00
testmode.c mt76: testmode: move chip-specific stats dump before common stats 2021-06-19 09:22:49 +02:00
testmode.h mt76: testmode: add support to send larger packet 2021-04-21 11:42:19 +02:00
trace.c mt76: move mac_txdone tracepoint in mt76 module 2020-02-14 10:06:03 +01:00
trace.h mt76: move mac_txdone tracepoint in mt76 module 2020-02-14 10:06:03 +01:00
tx.c mt76: move mt76_get_next_pkt_id in mt76.h 2021-06-19 09:22:49 +02:00
usb.c mt76: intialize tx queue entry wcid to 0xffff by default 2021-06-17 18:33:48 +02:00
usb_trace.c mt76: switch to SPDX tag instead of verbose boilerplate text 2019-09-05 17:42:31 +02:00
usb_trace.h mt76: fix some checkpatch warnings 2019-09-05 17:42:32 +02:00
util.c mt76: add utility functions for deferring work to a kernel thread 2020-09-24 18:10:18 +02:00
util.h mt76: add utility functions for deferring work to a kernel thread 2020-09-24 18:10:18 +02:00