CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Alexandre Belloni <alexandre.bell...@bootlin.com>
CC: Fabio Estevam <feste...@gmail.com>

Hi Alexandre,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   1fe5501ba1abf2b7e78295df73675423bd6899a0
commit: 0020868f2a7037e87d6b3b196526de2fb885830d rtc: mxc{,_v2}: enable 
COMPILE_TEST
date:   5 months ago
:::::: branch date: 14 hours ago
:::::: commit date: 5 months ago
config: openrisc-randconfig-s032-20210421 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0020868f2a7037e87d6b3b196526de2fb885830d
        git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 0020868f2a7037e87d6b3b196526de2fb885830d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=openrisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/rtc/rtc-mxc_v2.c:115:12: sparse: sparse: context imbalance in 
>> 'mxc_rtc_lock' - wrong count at exit
   drivers/rtc/rtc-mxc_v2.c:128:12: sparse: sparse: context imbalance in 
'mxc_rtc_unlock' - unexpected unlock

vim +/mxc_rtc_lock +115 drivers/rtc/rtc-mxc_v2.c

83c880f79e88cc6 Patrick Bruenn 2017-12-18  110  
83c880f79e88cc6 Patrick Bruenn 2017-12-18  111  /*
83c880f79e88cc6 Patrick Bruenn 2017-12-18  112   * Enable clk and aquire 
spinlock
83c880f79e88cc6 Patrick Bruenn 2017-12-18  113   * @return  0 if successful; 
non-zero otherwise.
83c880f79e88cc6 Patrick Bruenn 2017-12-18  114   */
83c880f79e88cc6 Patrick Bruenn 2017-12-18 @115  static int mxc_rtc_lock(struct 
mxc_rtc_data *const pdata)
83c880f79e88cc6 Patrick Bruenn 2017-12-18  116  {
83c880f79e88cc6 Patrick Bruenn 2017-12-18  117          int ret;
83c880f79e88cc6 Patrick Bruenn 2017-12-18  118  
83c880f79e88cc6 Patrick Bruenn 2017-12-18  119          
spin_lock_irq(&pdata->lock);
83c880f79e88cc6 Patrick Bruenn 2017-12-18  120          ret = 
clk_enable(pdata->clk);
83c880f79e88cc6 Patrick Bruenn 2017-12-18  121          if (ret) {
83c880f79e88cc6 Patrick Bruenn 2017-12-18  122                  
spin_unlock_irq(&pdata->lock);
83c880f79e88cc6 Patrick Bruenn 2017-12-18  123                  return ret;
83c880f79e88cc6 Patrick Bruenn 2017-12-18  124          }
83c880f79e88cc6 Patrick Bruenn 2017-12-18  125          return 0;
83c880f79e88cc6 Patrick Bruenn 2017-12-18  126  }
83c880f79e88cc6 Patrick Bruenn 2017-12-18  127  

:::::: The code at line 115 was first introduced by commit
:::::: 83c880f79e88cc60593f627e612326f5d43db81e rtc: add mxc driver for i.MX53 
SRTC

:::::: TO: Patrick Bruenn <p.bru...@beckhoff.com>
:::::: CC: Alexandre Belloni <alexandre.bell...@free-electrons.com>

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to