Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[-Wimplicit-fallthrough=] #233

Open
Randalix opened this issue Nov 10, 2022 · 0 comments
Open

[-Wimplicit-fallthrough=] #233

Randalix opened this issue Nov 10, 2022 · 0 comments

Comments

@Randalix
Copy link

Hello,
the DMKS compilation failes for 5.19.0-0.deb11.2-amd64, but it compiled perfectly fine before.

System:
Debian GNU/Linux 11 (bullseye) x86_64
gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Thanks in advance for your help!

DKMS make.log for rtl88x2bu-git for kernel 5.19.0-0.deb11.2-amd64 (x86_64)
Thu Nov 10 06:37:34 CET 2022
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.19.0-0.deb11.2-amd64/build M=/var/lib/dkms/rtl88x2bu/git/build  modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-0.deb11.2-amd64'
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_chplan.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/monitor/rtw_radiotap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/wds/rtw_wds.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_p2p.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rson.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_iol.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_btcoex_wifionly.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_btcoex.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_beamforming.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_odm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm_fsm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_ft.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_wnm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_mbo.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_rm_util.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/efuse/rtw_efuse.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_roch.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-internal.o
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c: In function 'rtw_txpwr_init_regd':
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c:299:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
  299 |   if (rfctl->regd_name)
      |      ^
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c:302:2: note: here
  302 |  default:
      |  ^~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c: In function 'mgt_dispatcher':
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c:1670:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1670 |    ptable->func = &OnAuthClient;
      |    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/core/rtw_mlme_ext.c:1672:2: note: here
 1672 |  case WIFI_ASSOCREQ:
      |  ^~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-internal-enc.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-gcm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-ccm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-omac1.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/ccmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/gcmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-siv.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/aes-ctr.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/sha256-internal.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/sha256.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/sha256-prf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/crypto/rtw_crypto_wrap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/core/rtw_swcrypto.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/os_intfs.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/usb_intf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/usb_ops_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/xmit_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/mlme_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/recv_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/wifi_regd.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/rtw_android.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/rtw_proc.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/nlrtw.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/rtw_rhashtable.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_mp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/hal_intf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/hal_com.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/hal_com_phycfg.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/hal_phy.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/hal_dm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/hal_dm_acs.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/hal_btcoex_wifionly.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/hal_btcoex.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/hal_mp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/hal_mcc.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/hal_hci/hal_usb.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/led/hal_led.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/led/hal_usb_led.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/rtl8822b_halinit.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/rtl8822b_mac.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/rtl8822b_cmd.o
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c: In function 'rtw_cfg80211_ch_switch_notify':
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:478:2: error: too few arguments to function 'cfg80211_ch_switch_notify'
  478 |  cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/rtl8822b_phy.o
In file included from /var/lib/dkms/rtl88x2bu/git/build/include/osdep_service_linux.h:98,
                 from /var/lib/dkms/rtl88x2bu/git/build/include/osdep_service.h:54,
                 from /var/lib/dkms/rtl88x2bu/git/build/include/drv_types.h:27,
                 from /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:17:
/usr/src/linux-headers-5.19.0-0.deb11.2-common/include/net/cfg80211.h:7967:6: note: declared here
 7967 | void cfg80211_ch_switch_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/rtl8822b_ops.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/hal8822b_fw.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/usb/rtl8822bu_halinit.o
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/usb/rtl8822bu_halmac.o
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c: At top level:
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:10413:13: error: initialization of 'int (*)(struct wiphy *, struct net_device *, unsigned int)' from incompatible pointer type 'int (*)(struct wiphy *, struct net_device *)' [-Werror=incompatible-pointer-types]
10413 |  .stop_ap = cfg80211_rtw_stop_ap,
      |             ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:10413:13: note: (near initialization for 'rtw_cfg80211_ops.stop_ap')
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:10457:17: error: initialization of 'int (*)(struct wiphy *, struct wireless_dev *, unsigned int,  struct cfg80211_chan_def *)' from incompatible pointer type 'int (*)(struct wiphy *, struct wireless_dev *, struct cfg80211_chan_def *)' [-Werror=incompatible-pointer-types]
10457 |  .get_channel = cfg80211_rtw_get_channel,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:10457:17: note: (near initialization for 'rtw_cfg80211_ops.get_channel')
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c: In function 'rtw_wdev_unregister':
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:10693:10: error: 'struct wireless_dev' has no member named 'current_bss'
10693 |  if (wdev->current_bss) {
      |          ^~
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/usb/rtl8822bu_io.o
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c: In function 'rtw_get_chbwoff_from_cfg80211_chan_def':
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:6796:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
 6796 |   *ht = 0;
      |   ~~~~^~~
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:6798:2: note: here
 6798 |  case NL80211_CHAN_WIDTH_20:
      |  ^~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/usb/rtl8822bu_xmit.o
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-5.19.0-0.deb11.2-common/scripts/Makefile.build:254: /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/rtl88x2bu/git/build/hal/hal_intf.c: In function 'c2h_handler':
/var/lib/dkms/rtl88x2bu/git/build/hal/hal_intf.c:1370:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1370 |   sub_id = payload[0];
      |   ~~~~~~~^~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/hal/hal_intf.c:1374:2: note: here
 1374 |  default:
      |  ^~~~~~~
/var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/rtl8822b_phy.c: In function '_sounding_config_su':
/var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/rtl8822b_phy.c:1303:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1303 |    if (0 == bfee->su_reg_index)
      |       ^
/var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/rtl8822b_phy.c:1308:3: note: here
 1308 |   case CHANNEL_WIDTH_40:
      |   ^~~~
/var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/rtl8822b_phy.c:1309:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1309 |    if (0 == bfee->su_reg_index)
      |       ^
/var/lib/dkms/rtl88x2bu/git/build/hal/rtl8822b/rtl8822b_phy.c:1314:3: note: here
 1314 |   case CHANNEL_WIDTH_20:
      |   ^~~~
make[1]: *** [/usr/src/linux-headers-5.19.0-0.deb11.2-common/Makefile:1870: /var/lib/dkms/rtl88x2bu/git/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-0.deb11.2-amd64'
make: *** [Makefile:2454: modules] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant