linux/drivers/net/wireless
Gustavo A. R. Silva aa8eaaaa12 rtw88: phy: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.

This patch fixes the following warnings:

drivers/net/wireless/realtek/rtw88/phy.c: In function ‘rtw_get_channel_group’:
./include/linux/compiler.h:77:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
 # define unlikely(x) __builtin_expect(!!(x), 0)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/bug.h:125:2: note: in expansion of macro ‘unlikely’
  unlikely(__ret_warn_on);     \
  ^~~~~~~~
drivers/net/wireless/realtek/rtw88/phy.c:907:3: note: in expansion of macro ‘WARN_ON’
   WARN_ON(1);
   ^~~~~~~
drivers/net/wireless/realtek/rtw88/phy.c:908:2: note: here
  case 1:
  ^~~~
In file included from ./include/linux/bcd.h:5,
                 from drivers/net/wireless/realtek/rtw88/phy.c:5:
drivers/net/wireless/realtek/rtw88/phy.c: In function ‘phy_get_2g_tx_power_index’:
./include/linux/compiler.h:77:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
 # define unlikely(x) __builtin_expect(!!(x), 0)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/bug.h:125:2: note: in expansion of macro ‘unlikely’
  unlikely(__ret_warn_on);     \
  ^~~~~~~~
drivers/net/wireless/realtek/rtw88/phy.c:1021:3: note: in expansion of macro ‘WARN_ON’
   WARN_ON(1);
   ^~~~~~~
drivers/net/wireless/realtek/rtw88/phy.c:1022:2: note: here
  case RTW_CHANNEL_WIDTH_20:
  ^~~~

Warning level 3 was used: -Wimplicit-fallthrough=3

This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-05-02 17:58:53 +03:00
..
admtek
ath Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2019-04-19 10:20:10 +03:00
atmel at76c50x-usb: Don't register led_trigger if usb_register_driver failed 2019-04-25 19:52:14 +03:00
broadcom brcmfmac: print firmware messages after a firmware crash 2019-05-01 18:27:31 +03:00
cisco Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-12-27 13:53:32 -08:00
intel iwlwifi: dbg_ini: check for valid region type during regions parsing 2019-04-29 18:42:48 +03:00
intersil p54: drop device reference count if fails to enable device 2019-04-25 19:56:56 +03:00
marvell mwl8k: move spin_lock_bh to spin_lock in tasklet 2019-04-26 14:57:15 +03:00
mediatek mt76: mt7603: dynamically alloc mcu req in mt7603_mcu_set_eeprom 2019-05-01 13:04:00 +02:00
quantenna qtnfmac: modify debugfs to support multiple cards 2019-04-26 14:53:13 +03:00
ralink rt2x00: add RT3883 support 2019-04-25 19:58:28 +03:00
realtek rtw88: phy: mark expected switch fall-throughs 2019-05-02 17:58:53 +03:00
rsi rsi: miscallaneous changes for 9116 and common 2019-04-25 19:44:29 +03:00
st net: cw1200: fix a NULL pointer dereference 2019-04-25 19:40:09 +03:00
ti wlcore: simplify/fix/optimize reg_ch_conf_pending operations 2019-04-25 20:12:10 +03:00
zydas zd1211rw: use struct_size() helper 2019-04-25 19:49:50 +03:00
Kconfig mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
mac80211_hwsim.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-04-17 11:26:25 -07:00
mac80211_hwsim.h mac80211_hwsim: allow configurable cipher types 2018-11-09 11:36:15 +01:00
Makefile mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
ray_cs.c ray_cs: use remove_proc_subtree to simplify procfs code 2019-04-25 19:38:52 +03:00
ray_cs.h
rayctl.h
rndis_wlan.c rndis_wlan: use struct_size() helper 2019-04-25 19:37:44 +03:00
virt_wifi.c virt_wifi: Remove REGULATORY_WIPHY_SELF_MANAGED 2019-02-11 17:10:48 +01:00
wl3501_cs.c
wl3501.h