CC: [email protected]
TO: Coly Li <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git 
for-next
head:   4abec8296a44a76ba4c59ed09d37a1f13604e57f
commit: 8e7f175298f3f054202b7ce5deaf716072e6d71f [17/24] bcache: support 
storing bcache journal into NVDIMM meta device
:::::: branch date: 9 days ago
:::::: commit date: 10 days ago
config: x86_64-randconfig-m001-20210219 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

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

smatch warnings:
drivers/md/bcache/journal.c:802 __journal_nvdimm_write_unlocked() warn: should 
'sectors << 9' be a 64 bit type?

vim +802 drivers/md/bcache/journal.c

8e7f175298f3f0 Coly Li 2021-02-07  789  
8e7f175298f3f0 Coly Li 2021-02-07  790  static void 
__journal_nvdimm_write_unlocked(struct cache_set *c)
8e7f175298f3f0 Coly Li 2021-02-07  791          __releases(c->journal.lock)
8e7f175298f3f0 Coly Li 2021-02-07  792  {
8e7f175298f3f0 Coly Li 2021-02-07  793          struct journal_write *w = 
c->journal.cur;
8e7f175298f3f0 Coly Li 2021-02-07  794          struct cache *ca = c->cache;
8e7f175298f3f0 Coly Li 2021-02-07  795          unsigned int sectors;
8e7f175298f3f0 Coly Li 2021-02-07  796  
8e7f175298f3f0 Coly Li 2021-02-07  797          sectors = set_blocks(w->data, 
block_bytes(ca)) * ca->sb.block_size;
8e7f175298f3f0 Coly Li 2021-02-07  798          atomic_long_add(sectors, 
&ca->meta_sectors_written);
8e7f175298f3f0 Coly Li 2021-02-07  799  
8e7f175298f3f0 Coly Li 2021-02-07  800          memcpy_flushcache((void 
*)c->journal.key.ptr[0], w->data, sectors << 9);
8e7f175298f3f0 Coly Li 2021-02-07  801  
8e7f175298f3f0 Coly Li 2021-02-07 @802          c->journal.key.ptr[0] += 
sectors << 9;
8e7f175298f3f0 Coly Li 2021-02-07  803          
ca->journal.seq[ca->journal.cur_idx] = w->data->seq;
8e7f175298f3f0 Coly Li 2021-02-07  804  
8e7f175298f3f0 Coly Li 2021-02-07  805          
atomic_dec_bug(&fifo_back(&c->journal.pin));
8e7f175298f3f0 Coly Li 2021-02-07  806          bch_journal_next(&c->journal);
8e7f175298f3f0 Coly Li 2021-02-07  807          journal_reclaim(c);
8e7f175298f3f0 Coly Li 2021-02-07  808  
8e7f175298f3f0 Coly Li 2021-02-07  809          spin_unlock(&c->journal.lock);
8e7f175298f3f0 Coly Li 2021-02-07  810  }
8e7f175298f3f0 Coly Li 2021-02-07  811  

---
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