All of lore.kernel.org
 help / color / mirror / Atom feed
* [bcache:nvdimm-meta 16/16] drivers/md/bcache/journal.c:904:13: sparse: sparse: context imbalance in 'journal_write' - wrong count at exit
@ 2021-04-08 21:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-08 21:17 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
TO: Coly Li <colyli@suse.de>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git nvdimm-meta
head:   722ffe14d3ec1009a9245b0f0ba49805643d92bb
commit: 722ffe14d3ec1009a9245b0f0ba49805643d92bb [16/16] bcache: more fix for compiling error when BCACHE_NVM_PAGES disabled
:::::: branch date: 5 hours ago
:::::: commit date: 5 hours ago
config: i386-randconfig-s002-20210408 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-279-g6d5d9b42-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git/commit/?id=722ffe14d3ec1009a9245b0f0ba49805643d92bb
        git remote add bcache https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git
        git fetch --no-tags bcache nvdimm-meta
        git checkout 722ffe14d3ec1009a9245b0f0ba49805643d92bb
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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


sparse warnings: (new ones prefixed by >>)
   drivers/md/bcache/journal.c: note: in included file (through drivers/md/bcache/bcache.h):
   include/uapi/linux/bcache.h:362:38: sparse: sparse: array of flexible structures
   drivers/md/bcache/journal.c: note: in included file (through drivers/md/bcache/bcache.h):
   drivers/md/bcache/bset.h:231:36: sparse: sparse: array of flexible structures
   drivers/md/bcache/journal.c:875:17: sparse: sparse: context imbalance in 'journal_write_unlocked' - unexpected unlock
>> drivers/md/bcache/journal.c:904:13: sparse: sparse: context imbalance in 'journal_write' - wrong count at exit
   drivers/md/bcache/journal.c:920:9: sparse: sparse: context imbalance in 'journal_try_write' - different lock contexts for basic block

vim +/journal_write +904 drivers/md/bcache/journal.c

cafe563591446c Kent Overstreet 2013-03-23  903  
cafe563591446c Kent Overstreet 2013-03-23 @904  static void journal_write(struct closure *cl)
cafe563591446c Kent Overstreet 2013-03-23  905  {
7857d5d470ec53 Kent Overstreet 2013-10-08  906  	struct cache_set *c = container_of(cl, struct cache_set, journal.io);
cafe563591446c Kent Overstreet 2013-03-23  907  
cafe563591446c Kent Overstreet 2013-03-23  908  	spin_lock(&c->journal.lock);
cafe563591446c Kent Overstreet 2013-03-23  909  	journal_write_unlocked(cl);
cafe563591446c Kent Overstreet 2013-03-23  910  }
cafe563591446c Kent Overstreet 2013-03-23  911  

:::::: The code at line 904 was first introduced by commit
:::::: cafe563591446cf80bfbc2fe3bc72a2e36cf1060 bcache: A block layer cache

:::::: TO: Kent Overstreet <koverstreet@google.com>
:::::: CC: Kent Overstreet <koverstreet@google.com>

---
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: 35099 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-08 21:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-08 21:17 [bcache:nvdimm-meta 16/16] drivers/md/bcache/journal.c:904:13: sparse: sparse: context imbalance in 'journal_write' - wrong count at exit kernel test robot

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.