CC: [email protected]
CC: Xiang Gao <[email protected]>
CC: [email protected]
TO: Gao Xiang <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git 
erofs/fiemap
head:   4cd42fa5dc37bbf5242982a93de5cb378a35a8c6
commit: ae55a70bae6448895c88106bc46384e356915814 [7/8] erofs: add support for 
the full decompressed length
:::::: branch date: 9 hours ago
:::::: commit date: 9 hours ago
config: x86_64-randconfig-m001-20210813 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 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]>

New smatch warnings:
fs/erofs/zmap.c:233 get_compacted_la_distance() error: uninitialized symbol 
'lo'.

Old smatch warnings:
fs/erofs/zmap.c:474 z_erofs_get_extent_compressedlen() warn: should '1 << 
lclusterbits' be a 64 bit type?
fs/erofs/zmap.c:520 z_erofs_get_extent_compressedlen() warn: should 
'm->compressedlcs << lclusterbits' be a 64 bit type?

vim +/lo +233 fs/erofs/zmap.c

152a333a589560 drivers/staging/erofs/zmap.c Gao Xiang 2019-06-24  214  
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  215  static 
int get_compacted_la_distance(unsigned int lclusterbits,
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  216           
                     unsigned int encodebits,
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  217           
                     unsigned int vcnt, u8 *in, int i)
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  218  {
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  219   const 
unsigned int lomask = (1 << lclusterbits) - 1;
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  220   
unsigned int lo, d1 = 0;
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  221   u8 type;
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  222  
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  223   for (; 
i < vcnt; ++i) {
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  224           
lo = decode_compactedbits(lclusterbits, lomask,
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  225           
                          in, encodebits * i, &type);
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  226  
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  227           
if (type != Z_EROFS_VLE_CLUSTER_TYPE_NONHEAD)
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  228           
        return d1;
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  229           
++d1;
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  230   }
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  231  
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  232   /* vcnt 
- 1 (Z_EROFS_VLE_CLUSTER_TYPE_NONHEAD) item */
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12 @233   if 
(!(lo & Z_EROFS_VLE_DI_D0_CBLKCNT))
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  234           
d1 += lo - 1;
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  235   return 
d1;
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  236  }
ae55a70bae6448 fs/erofs/zmap.c              Gao Xiang 2021-08-12  237  

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