[staging:staging-testing 197/223] drivers/staging/r8188eu/hal/rtl8188e_dm.c:182:1: error: label at end of compound statement

From: kernel test robot
Date: Thu Aug 05 2021 - 09:42:04 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head: a8f80c20b373bb46670643db81f043ba7da6a537
commit: b398ff88aa362e6fb348b2f39f2bf1b9a1f42d1e [197/223] staging: r8188eu: remove return from void functions
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/commit/?id=b398ff88aa362e6fb348b2f39f2bf1b9a1f42d1e
git remote add staging https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
git fetch --no-tags staging staging-testing
git checkout b398ff88aa362e6fb348b2f39f2bf1b9a1f42d1e
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/staging/r8188eu/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

drivers/staging/r8188eu/hal/rtl8188e_dm.c: In function 'rtl8188e_HalDmWatchDog':
>> drivers/staging/r8188eu/hal/rtl8188e_dm.c:182:1: error: label at end of compound statement
182 | skip_dm:
| ^~~~~~~

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC


vim +182 drivers/staging/r8188eu/hal/rtl8188e_dm.c

8cd574e6af5463 Phillip Potter 2021-07-28 136
8cd574e6af5463 Phillip Potter 2021-07-28 137 void rtl8188e_HalDmWatchDog(struct adapter *Adapter)
8cd574e6af5463 Phillip Potter 2021-07-28 138 {
8cd574e6af5463 Phillip Potter 2021-07-28 139 bool fw_cur_in_ps = false;
8cd574e6af5463 Phillip Potter 2021-07-28 140 bool fw_ps_awake = true;
8cd574e6af5463 Phillip Potter 2021-07-28 141 u8 hw_init_completed = false;
8cd574e6af5463 Phillip Potter 2021-07-28 142 struct hal_data_8188e *hal_data = GET_HAL_DATA(Adapter);
8cd574e6af5463 Phillip Potter 2021-07-28 143
8cd574e6af5463 Phillip Potter 2021-07-28 144
8cd574e6af5463 Phillip Potter 2021-07-28 145 hw_init_completed = Adapter->hw_init_completed;
8cd574e6af5463 Phillip Potter 2021-07-28 146
8cd574e6af5463 Phillip Potter 2021-07-28 147 if (!hw_init_completed)
8cd574e6af5463 Phillip Potter 2021-07-28 148 goto skip_dm;
8cd574e6af5463 Phillip Potter 2021-07-28 149
8cd574e6af5463 Phillip Potter 2021-07-28 150 fw_cur_in_ps = Adapter->pwrctrlpriv.bFwCurrentInPSMode;
8cd574e6af5463 Phillip Potter 2021-07-28 151 rtw_hal_get_hwreg(Adapter, HW_VAR_FWLPS_RF_ON, (u8 *)(&fw_ps_awake));
8cd574e6af5463 Phillip Potter 2021-07-28 152
8cd574e6af5463 Phillip Potter 2021-07-28 153 /* Fw is under p2p powersaving mode, driver should stop dynamic mechanism. */
8cd574e6af5463 Phillip Potter 2021-07-28 154 /* modifed by thomas. 2011.06.11. */
8cd574e6af5463 Phillip Potter 2021-07-28 155 if (Adapter->wdinfo.p2p_ps_mode)
8cd574e6af5463 Phillip Potter 2021-07-28 156 fw_ps_awake = false;
8cd574e6af5463 Phillip Potter 2021-07-28 157
8cd574e6af5463 Phillip Potter 2021-07-28 158 if (hw_init_completed && ((!fw_cur_in_ps) && fw_ps_awake)) {
8cd574e6af5463 Phillip Potter 2021-07-28 159 /* Calculate Tx/Rx statistics. */
8cd574e6af5463 Phillip Potter 2021-07-28 160 dm_CheckStatistics(Adapter);
8cd574e6af5463 Phillip Potter 2021-07-28 161
8cd574e6af5463 Phillip Potter 2021-07-28 162
8cd574e6af5463 Phillip Potter 2021-07-28 163 }
8cd574e6af5463 Phillip Potter 2021-07-28 164
8cd574e6af5463 Phillip Potter 2021-07-28 165 /* ODM */
8cd574e6af5463 Phillip Potter 2021-07-28 166 if (hw_init_completed) {
8cd574e6af5463 Phillip Potter 2021-07-28 167 struct mlme_priv *pmlmepriv = &Adapter->mlmepriv;
8cd574e6af5463 Phillip Potter 2021-07-28 168 u8 bLinked = false;
8cd574e6af5463 Phillip Potter 2021-07-28 169
8cd574e6af5463 Phillip Potter 2021-07-28 170 if ((check_fwstate(pmlmepriv, WIFI_AP_STATE)) ||
8cd574e6af5463 Phillip Potter 2021-07-28 171 (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE | WIFI_ADHOC_MASTER_STATE))) {
8cd574e6af5463 Phillip Potter 2021-07-28 172 if (Adapter->stapriv.asoc_sta_count > 2)
8cd574e6af5463 Phillip Potter 2021-07-28 173 bLinked = true;
8cd574e6af5463 Phillip Potter 2021-07-28 174 } else {/* Station mode */
8cd574e6af5463 Phillip Potter 2021-07-28 175 if (check_fwstate(pmlmepriv, _FW_LINKED))
8cd574e6af5463 Phillip Potter 2021-07-28 176 bLinked = true;
8cd574e6af5463 Phillip Potter 2021-07-28 177 }
8cd574e6af5463 Phillip Potter 2021-07-28 178
8cd574e6af5463 Phillip Potter 2021-07-28 179 ODM_CmnInfoUpdate(&hal_data->odmpriv, ODM_CMNINFO_LINK, bLinked);
8cd574e6af5463 Phillip Potter 2021-07-28 180 ODM_DMWatchdog(&hal_data->odmpriv);
8cd574e6af5463 Phillip Potter 2021-07-28 181 }
8cd574e6af5463 Phillip Potter 2021-07-28 @182 skip_dm:
8cd574e6af5463 Phillip Potter 2021-07-28 183 /* Check GPIO to determine current RF on/off and Pbc status. */
8cd574e6af5463 Phillip Potter 2021-07-28 184 /* Check Hardware Radio ON/OFF or not */
8cd574e6af5463 Phillip Potter 2021-07-28 185 }
8cd574e6af5463 Phillip Potter 2021-07-28 186

:::::: The code at line 182 was first introduced by commit
:::::: 8cd574e6af5463af7d693d111c61212e52c44810 staging: r8188eu: introduce new hal dir for RTL8188eu driver

:::::: TO: Phillip Potter <phil@xxxxxxxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip