Re: [PATCH v7] staging: rtl8723bs: remove unnecessary braces in rtw_mlme.c

From: kernel test robot

Date: Wed May 13 2026 - 23:34:59 EST


Hi Ashwin,

kernel test robot noticed the following build errors:

[auto build test ERROR on staging/staging-testing]

url: https://github.com/intel-lab-lkp/linux/commits/Ashwin-Gundarapu/staging-rtl8723bs-remove-unnecessary-braces-in-rtw_mlme-c/20260514-040753
base: staging/staging-testing
patch link: https://lore.kernel.org/r/19e1c077ee4.2272059b46402.3689085453526247548%40zohomail.in
patch subject: [PATCH v7] staging: rtl8723bs: remove unnecessary braces in rtw_mlme.c
config: i386-buildonly-randconfig-006-20260514 (https://download.01.org/0day-ci/archive/20260514/202605141108.KAKaXH7X-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260514/202605141108.KAKaXH7X-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605141108.KAKaXH7X-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/staging/rtl8723bs/core/rtw_mlme.c:568:1: error: function definition is not allowed here
568 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:582:1: error: function definition is not allowed here
582 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:628:1: error: function definition is not allowed here
628 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:632:1: error: function definition is not allowed here
632 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:675:1: error: function definition is not allowed here
675 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:774:1: error: function definition is not allowed here
774 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:778:1: error: function definition is not allowed here
778 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:782:1: error: function definition is not allowed here
782 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:805:1: error: function definition is not allowed here
805 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:823:1: error: function definition is not allowed here
823 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:853:1: error: function definition is not allowed here
853 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:879:1: error: function definition is not allowed here
879 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:908:1: error: function definition is not allowed here
908 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:920:1: error: function definition is not allowed here
920 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:942:1: error: function definition is not allowed here
942 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:1026:1: error: function definition is not allowed here
1026 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:1073:1: error: function definition is not allowed here
1073 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:1139:1: error: function definition is not allowed here
1139 | {
| ^
drivers/staging/rtl8723bs/core/rtw_mlme.c:1247:1: error: function definition is not allowed here
1247 | {
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for MFD_STMFX
Depends on [n]: HAS_IOMEM [=y] && I2C [=m] && OF [=n]
Selected by [m]:
- PINCTRL_STMFX [=m] && PINCTRL [=y] && I2C [=m] && HAS_IOMEM [=y]


vim +568 drivers/staging/rtl8723bs/core/rtw_mlme.c

554c0a3abf216c Hans de Goede 2017-03-29 565
554c0a3abf216c Hans de Goede 2017-03-29 566 void rtw_add_network(struct adapter *adapter, struct wlan_bssid_ex *pnetwork);
554c0a3abf216c Hans de Goede 2017-03-29 567 void rtw_add_network(struct adapter *adapter, struct wlan_bssid_ex *pnetwork)
554c0a3abf216c Hans de Goede 2017-03-29 @568 {
554c0a3abf216c Hans de Goede 2017-03-29 569 update_current_network(adapter, pnetwork);
554c0a3abf216c Hans de Goede 2017-03-29 570 rtw_update_scanned_network(adapter, pnetwork);
554c0a3abf216c Hans de Goede 2017-03-29 571 }
554c0a3abf216c Hans de Goede 2017-03-29 572

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki