CC: [email protected]
In-Reply-To: <[email protected]>
References: <[email protected]>
TO: Desmond Cheong Zhi Xi <[email protected]>
TO: [email protected]
TO: [email protected]
TO: [email protected]
TO: [email protected]
TO: [email protected]
TO: [email protected]
TO: [email protected]
CC: Desmond Cheong Zhi Xi <[email protected]>
CC: [email protected]
CC: [email protected]

Hi Desmond,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.14-rc5 next-20210813]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    
https://github.com/0day-ci/linux/commits/Desmond-Cheong-Zhi-Xi/drm-update-the-ioctl-handler/20210813-170456
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
f8e6dfc64f6135d1b6c5215c14cd30b9b60a0008
:::::: branch date: 5 hours ago
:::::: commit date: 5 hours ago
config: x86_64-randconfig-s031-20210813 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-348-gf0e6938b-dirty
        # 
https://github.com/0day-ci/linux/commit/485c944226fc155b0f5f7df8b9597a9e72e4e2df
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review 
Desmond-Cheong-Zhi-Xi/drm-update-the-ioctl-handler/20210813-170456
        git checkout 485c944226fc155b0f5f7df8b9597a9e72e4e2df
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/drm_auth.c:408:6: sparse: sparse: context imbalance in 
>> 'drm_master_internal_acquire' - different lock contexts for basic block
   drivers/gpu/drm/drm_auth.c: note: in included file (through 
include/linux/notifier.h, include/linux/memory_hotplug.h, 
include/linux/mmzone.h, ...):
   include/linux/srcu.h:188:9: sparse: sparse: context imbalance in 
'drm_master_internal_release' - unexpected unlock
--
>> drivers/gpu/drm/drm_ioctl.c:816:9: sparse: sparse: context imbalance in 
>> 'drm_ioctl_kernel' - different lock contexts for basic block

vim +/drm_master_internal_acquire +408 drivers/gpu/drm/drm_auth.c

03a9606e7feef9 Noralf Trønnes        2019-05-06  406  
03a9606e7feef9 Noralf Trønnes        2019-05-06  407  /* Used by drm_client and 
drm_fb_helper */
485c944226fc15 Desmond Cheong Zhi Xi 2021-08-13 @408  bool 
drm_master_internal_acquire(struct drm_device *dev, int *idx)
03a9606e7feef9 Noralf Trønnes        2019-05-06  409  {
485c944226fc15 Desmond Cheong Zhi Xi 2021-08-13  410    *idx = 
srcu_read_lock(&dev->master_barrier_srcu);
485c944226fc15 Desmond Cheong Zhi Xi 2021-08-13  411  
03a9606e7feef9 Noralf Trønnes        2019-05-06  412    
mutex_lock(&dev->master_mutex);
03a9606e7feef9 Noralf Trønnes        2019-05-06  413    if (dev->master) {
03a9606e7feef9 Noralf Trønnes        2019-05-06  414            
mutex_unlock(&dev->master_mutex);
485c944226fc15 Desmond Cheong Zhi Xi 2021-08-13  415            
srcu_read_unlock(&dev->master_barrier_srcu, *idx);
03a9606e7feef9 Noralf Trønnes        2019-05-06  416            return false;
03a9606e7feef9 Noralf Trønnes        2019-05-06  417    }
485c944226fc15 Desmond Cheong Zhi Xi 2021-08-13  418    
mutex_unlock(&dev->master_mutex);
03a9606e7feef9 Noralf Trønnes        2019-05-06  419  
03a9606e7feef9 Noralf Trønnes        2019-05-06  420    return true;
03a9606e7feef9 Noralf Trønnes        2019-05-06  421  }
03a9606e7feef9 Noralf Trønnes        2019-05-06  422  
EXPORT_SYMBOL(drm_master_internal_acquire);
03a9606e7feef9 Noralf Trønnes        2019-05-06  423  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to