Open nsrshishir opened 2 years ago
Hi, I do not see any error here. BTF generation
can be safe skipped.
Yes there are no errors. but several warnings are there, which I thought should share with you.
Oh, thanks. Those warnings are expected, since some compiler versions do not recognize the fall through comments in the code.
sudo make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-27-generic/build M=/home/niaj/rtl88x2bu modules make[1]: Entering directory '/usr/src/linux-headers-5.15.0-27-generic' CC [M] /home/niaj/rtl88x2bu/core/rtw_cmd.o CC [M] /home/niaj/rtl88x2bu/core/rtw_security.o CC [M] /home/niaj/rtl88x2bu/core/rtw_debug.o CC [M] /home/niaj/rtl88x2bu/core/rtw_io.o CC [M] /home/niaj/rtl88x2bu/core/rtw_ioctl_query.o CC [M] /home/niaj/rtl88x2bu/core/rtw_ioctl_set.o CC [M] /home/niaj/rtl88x2bu/core/rtw_ieee80211.o CC [M] /home/niaj/rtl88x2bu/core/rtw_mlme.o CC [M] /home/niaj/rtl88x2bu/core/rtw_mlme_ext.o /home/niaj/rtl88x2bu/core/rtw_mlme_ext.c: In function ‘rtw_txpwr_init_regd’: /home/niaj/rtl88x2bu/core/rtw_mlme_ext.c:299:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 299 | if (rfctl->regd_name) | ^ /home/niaj/rtl88x2bu/core/rtw_mlme_ext.c:302:9: note: here 302 | default: | ^
~~ /home/niaj/rtl88x2bu/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’: /home/niaj/rtl88x2bu/core/rtw_mlme_ext.c:1670:38: warning: this statement may fall through [-Wimplicit-fallthrough=] 1670 | ptable->func = &OnAuthClient; |~~~^~~~~ /home/niaj/rtl88x2bu/core/rtw_mlme_ext.c:1672:9: note: here 1672 | case WIFI_ASSOCREQ: | ^~~~ CC [M] /home/niaj/rtl88x2bu/core/rtw_mi.o CC [M] /home/niaj/rtl88x2bu/core/rtw_wlan_util.o CC [M] /home/niaj/rtl88x2bu/core/rtw_vht.o CC [M] /home/niaj/rtl88x2bu/core/rtw_pwrctrl.o CC [M] /home/niaj/rtl88x2bu/core/rtw_rf.o CC [M] /home/niaj/rtl88x2bu/core/rtw_chplan.o CC [M] /home/niaj/rtl88x2bu/core/monitor/rtw_radiotap.o CC [M] /home/niaj/rtl88x2bu/core/rtw_recv.o CC [M] /home/niaj/rtl88x2bu/core/rtw_sta_mgt.o CC [M] /home/niaj/rtl88x2bu/core/rtw_ap.o CC [M] /home/niaj/rtl88x2bu/core/wds/rtw_wds.o CC [M] /home/niaj/rtl88x2bu/core/mesh/rtw_mesh.o CC [M] /home/niaj/rtl88x2bu/core/mesh/rtw_mesh_pathtbl.o CC [M] /home/niaj/rtl88x2bu/core/mesh/rtw_mesh_hwmp.o CC [M] /home/niaj/rtl88x2bu/core/rtw_xmit.o CC [M] /home/niaj/rtl88x2bu/core/rtw_p2p.o CC [M] /home/niaj/rtl88x2bu/core/rtw_rson.o CC [M] /home/niaj/rtl88x2bu/core/rtw_tdls.o CC [M] /home/niaj/rtl88x2bu/core/rtw_br_ext.o CC [M] /home/niaj/rtl88x2bu/core/rtw_iol.o CC [M] /home/niaj/rtl88x2bu/core/rtw_sreset.o CC [M] /home/niaj/rtl88x2bu/core/rtw_btcoex_wifionly.o CC [M] /home/niaj/rtl88x2bu/core/rtw_btcoex.o CC [M] /home/niaj/rtl88x2bu/core/rtw_beamforming.o CC [M] /home/niaj/rtl88x2bu/core/rtw_odm.o CC [M] /home/niaj/rtl88x2bu/core/rtw_rm.o CC [M] /home/niaj/rtl88x2bu/core/rtw_rm_fsm.o CC [M] /home/niaj/rtl88x2bu/core/rtw_ft.o CC [M] /home/niaj/rtl88x2bu/core/rtw_wnm.o CC [M] /home/niaj/rtl88x2bu/core/rtw_mbo.o CC [M] /home/niaj/rtl88x2bu/core/rtw_rm_util.o CC [M] /home/niaj/rtl88x2bu/core/efuse/rtw_efuse.o CC [M] /home/niaj/rtl88x2bu/core/rtw_roch.o CC [M] /home/niaj/rtl88x2bu/core/crypto/aes-internal.o CC [M] /home/niaj/rtl88x2bu/core/crypto/aes-internal-enc.o CC [M] /home/niaj/rtl88x2bu/core/crypto/aes-gcm.o CC [M] /home/niaj/rtl88x2bu/core/crypto/aes-ccm.o CC [M] /home/niaj/rtl88x2bu/core/crypto/aes-omac1.o CC [M] /home/niaj/rtl88x2bu/core/crypto/ccmp.o CC [M] /home/niaj/rtl88x2bu/core/crypto/gcmp.o CC [M] /home/niaj/rtl88x2bu/core/crypto/aes-siv.o CC [M] /home/niaj/rtl88x2bu/core/crypto/aes-ctr.o CC [M] /home/niaj/rtl88x2bu/core/crypto/sha256-internal.o CC [M] /home/niaj/rtl88x2bu/core/crypto/sha256.o CC [M] /home/niaj/rtl88x2bu/core/crypto/sha256-prf.o CC [M] /home/niaj/rtl88x2bu/core/crypto/rtw_crypto_wrap.o CC [M] /home/niaj/rtl88x2bu/core/rtw_swcrypto.o CC [M] /home/niaj/rtl88x2bu/os_dep/osdep_service.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/os_intfs.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/usb_intf.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/usb_ops_linux.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/ioctl_linux.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/xmit_linux.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/mlme_linux.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/recv_linux.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/ioctl_cfg80211.o /home/niaj/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_chbwoff_from_cfg80211_chan_def’: /home/niaj/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:6796:21: warning: this statement may fall through [-Wimplicit-fallthrough=] 6796 | *ht = 0; |~~^/home/niaj/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:6798:9: note: here 6798 | case NL80211_CHAN_WIDTH_20: | ^~~~ CC [M] /home/niaj/rtl88x2bu/os_dep/linux/rtw_cfgvendor.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/wifi_regd.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/rtw_android.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/rtw_proc.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/nlrtw.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/rtw_rhashtable.o CC [M] /home/niaj/rtl88x2bu/os_dep/linux/ioctl_mp.o CC [M] /home/niaj/rtl88x2bu/hal/hal_intf.o /home/niaj/rtl88x2bu/hal/hal_intf.c: In function ‘c2h_handler’: /home/niaj/rtl88x2bu/hal/hal_intf.c:1370:24: warning: this statement may fall through [-Wimplicit-fallthrough=] 1370 | sub_id = payload[0]; |~^~~~~~ /home/niaj/rtl88x2bu/hal/hal_intf.c:1374:9: note: here 1374 | default: | ^~~ CC [M] /home/niaj/rtl88x2bu/hal/hal_com.o CC [M] /home/niaj/rtl88x2bu/hal/hal_com_phycfg.o CC [M] /home/niaj/rtl88x2bu/hal/hal_phy.o CC [M] /home/niaj/rtl88x2bu/hal/hal_dm.o CC [M] /home/niaj/rtl88x2bu/hal/hal_dm_acs.o CC [M] /home/niaj/rtl88x2bu/hal/hal_btcoex_wifionly.o CC [M] /home/niaj/rtl88x2bu/hal/hal_btcoex.o CC [M] /home/niaj/rtl88x2bu/hal/hal_mp.o CC [M] /home/niaj/rtl88x2bu/hal/hal_mcc.o CC [M] /home/niaj/rtl88x2bu/hal/hal_hci/hal_usb.o CC [M] /home/niaj/rtl88x2bu/hal/led/hal_led.o CC [M] /home/niaj/rtl88x2bu/hal/led/hal_usb_led.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/rtl8822b_halinit.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/rtl8822b_mac.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/rtl8822b_cmd.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/rtl8822b_phy.o /home/niaj/rtl88x2bu/hal/rtl8822b/rtl8822b_phy.c: In function ‘_sounding_config_su’: /home/niaj/rtl88x2bu/hal/rtl8822b/rtl8822b_phy.c:1303:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 1303 | if (0 == bfee->su_reg_index) | ^ /home/niaj/rtl88x2bu/hal/rtl8822b/rtl8822b_phy.c:1308:17: note: here 1308 | case CHANNEL_WIDTH_40: | ^~~~ /home/niaj/rtl88x2bu/hal/rtl8822b/rtl8822b_phy.c:1309:28: warning: this statement may fall through [-Wimplicit-fallthrough=] 1309 | if (0 == bfee->su_reg_index) | ^ /home/niaj/rtl88x2bu/hal/rtl8822b/rtl8822b_phy.c:1314:17: note: here 1314 | case CHANNEL_WIDTH_20: | ^~~~ CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/rtl8822b_ops.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/hal8822b_fw.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/usb/rtl8822bu_halinit.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/usb/rtl8822bu_halmac.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/usb/rtl8822bu_io.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/usb/rtl8822bu_xmit.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/usb/rtl8822bu_recv.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/usb/rtl8822bu_led.o CC [M] /home/niaj/rtl88x2bu/hal/rtl8822b/usb/rtl8822bu_ops.o CC [M] /home/niaj/rtl88x2bu/hal/efuse/rtl8822b/HalEfuseMask8822B_USB.o CC [M] /home/niaj/rtl88x2bu/hal/hal_halmac.o In file included from /home/niaj/rtl88x2bu/include/drv_types.h:60, from /home/niaj/rtl88x2bu/hal/hal_halmac.c:17: /home/niaj/rtl88x2bu/hal/hal_halmac.c: In function ‘_send_general_info’: /home/niaj/rtl88x2bu/include/rtw_debug.h:159:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 159 | if (_DRVWARNING <= rtw_drv_log_level) {\ | ^ /home/niaj/rtl88x2bu/hal/hal_halmac.c:3109:17: note: in expansion of macro ‘RTW_WARN’ 3109 | RTW_WARN("%s: halmac_send_general_info() fail because fw not dl!\n", | ^~~~ /home/niaj/rtl88x2bu/hal/hal_halmac.c:3112:9: note: here 3112 | default: | ^~~ CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_api.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_dbg.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_bb_rf_88xx.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_cfg_wmac_88xx.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_common_88xx.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_efuse_88xx.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_flash_88xx.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_fw_88xx.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_gpio_88xx.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_init_88xx.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_mimo_88xx.o /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_mimo_88xx.c: In function ‘cfg_txbf_88xx’: /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_mimo_88xx.c:65:32: warning: this statement may fall through [-Wimplicit-fallthrough=] 65 | tmp42c |= BIT_R_TXBF0_80M; /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_mimo_88xx.c:67:17: note: here 67 | case HALMAC_BW_40: | ^~~~ /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_mimo_88xx.c:68:32: warning: this statement may fall through [-Wimplicit-fallthrough=] 68 | tmp42c |= BIT_R_TXBF0_40M; /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_mimo_88xx.c:70:17: note: here 70 | case HALMAC_BW_20: | ^~~~ CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_usb_88xx.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_8822b/halmac_cfg_wmac_8822b.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_8822b/halmac_common_8822b.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_8822b/halmac_gpio_8822b.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_8822b/halmac_init_8822b.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_8822b/halmac_phy_8822b.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_8822b/halmac_pwr_seq_8822b.o CC [M] /home/niaj/rtl88x2bu/hal/halmac/halmac_88xx/halmac_8822b/halmac_usb_8822b.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_debug.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_antdiv.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_soml.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_smt_ant.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_antdect.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_interface.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_phystatus.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_hwconfig.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_dig.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_pathdiv.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_rainfo.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_dynamictxpower.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_adaptivity.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_cfotracking.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_noisemonitor.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_beamforming.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_direct_bf.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_dfs.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/txbf/halcomtxbf.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/txbf/haltxbfinterface.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/txbf/phydm_hal_txbf_api.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_adc_sampling.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_ccx.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_psd.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_primary_cca.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_cck_pd.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_rssi_monitor.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_auto_dbg.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_math_lib.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_api.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_pow_train.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_lna_sat.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_pmac_tx_setting.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_mp.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/phydm_cck_rx_pathdiv.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/halrf/halrf.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/halrf/halrf_debug.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/halrf/halphyrf_ce.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/halrf/halrf_powertracking_ce.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/halrf/halrf_powertracking.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/halrf/halrf_kfree.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/halrf/halrf_psd.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/rtl8822b/halhwimg8822b_bb.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/rtl8822b/halhwimg8822b_mac.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/halrf/rtl8822b/halrf_8822b.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/rtl8822b/phydm_hal_api8822b.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/halrf/rtl8822b/halhwimg8822b_rf.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/halrf/rtl8822b/halrf_rfk_init_8822b.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/rtl8822b/phydm_regconfig8822b.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/rtl8822b/phydm_rtl8822b.o CC [M] /home/niaj/rtl88x2bu/hal/phydm/txbf/haltxbf8822b.o CC [M] /home/niaj/rtl88x2bu/hal/btc/halbtc8822bwifionly.o CC [M] /home/niaj/rtl88x2bu/hal/btc/halbtc8822b1ant.o CC [M] /home/niaj/rtl88x2bu/hal/btc/halbtc8822b2ant.o CC [M] /home/niaj/rtl88x2bu/platform/platform_ops.o CC [M] /home/niaj/rtl88x2bu/core/rtw_mp.o LD [M] /home/niaj/rtl88x2bu/88x2bu.o MODPOST /home/niaj/rtl88x2bu/Module.symvers CC [M] /home/niaj/rtl88x2bu/88x2bu.mod.o LD [M] /home/niaj/rtl88x2bu/88x2bu.ko BTF [M] /home/niaj/rtl88x2bu/88x2bu.ko Skipping BTF generation for /home/niaj/rtl88x2bu/88x2bu.ko due to unavailability of vmlinux make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-27-generic'