All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [staging:staging-testing 197/223] drivers/staging/r8188eu/hal/rtl8188e_dm.c:182:1: error: label at end of compound statement
Date: Thu, 05 Aug 2021 21:41:13 +0800	[thread overview]
Message-ID: <202108052105.99oSCXUb-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 6107 bytes --]

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@intel.com>

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@philpotter.co.uk>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 55015 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Michael Straube <straube.linux@gmail.com>
Cc: kbuild-all@lists.01.org, devel@driverdev.osuosl.org,
	linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: [staging:staging-testing 197/223] drivers/staging/r8188eu/hal/rtl8188e_dm.c:182:1: error: label at end of compound statement
Date: Thu, 5 Aug 2021 21:41:13 +0800	[thread overview]
Message-ID: <202108052105.99oSCXUb-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 6008 bytes --]

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@intel.com>

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@philpotter.co.uk>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 55015 bytes --]

             reply	other threads:[~2021-08-05 13:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05 13:41 kernel test robot [this message]
2021-08-05 13:41 ` [staging:staging-testing 197/223] drivers/staging/r8188eu/hal/rtl8188e_dm.c:182:1: error: label at end of compound statement kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202108052105.99oSCXUb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.