tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 07b677953b9dca02928be323e2db853511305fa9 commit: 98988fc8e9edc4da5825b3dd5544880c210a8738 [2144/2217] zstd: import upstream v1.5.5 config: x86_64-randconfig-161-20231121 (https://download.01.org/0day-ci/archive/20231121/202311211857.NFL6O9OG-lkp@xxxxxxxxx/config) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce: (https://download.01.org/0day-ci/archive/20231121/202311211857.NFL6O9OG-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202311211857.NFL6O9OG-lkp@xxxxxxxxx/ New smatch warnings: lib/zstd/decompress/../common/bits.h:59 ZSTD_countLeadingZeros32() warn: inconsistent indenting lib/zstd/decompress/../common/bits.h:59 ZSTD_countLeadingZeros32() warn: inconsistent indenting lib/zstd/decompress/../common/bits.h:69 ZSTD_countTrailingZeros64() warn: inconsistent indenting lib/zstd/common/bits.h:33 ZSTD_countTrailingZeros32() warn: inconsistent indenting lib/zstd/common/bits.h:59 ZSTD_countLeadingZeros32() warn: inconsistent indenting lib/zstd/decompress/../common/bits.h:59 ZSTD_countLeadingZeros32() warn: inconsistent indenting lib/zstd/common/bits.h:59 ZSTD_countLeadingZeros32() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:59 ZSTD_countLeadingZeros32() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:69 ZSTD_countTrailingZeros64() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:33 ZSTD_countTrailingZeros32() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:87 ZSTD_countLeadingZeros64() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:59 ZSTD_countLeadingZeros32() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:59 ZSTD_countLeadingZeros32() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:69 ZSTD_countTrailingZeros64() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:33 ZSTD_countTrailingZeros32() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:87 ZSTD_countLeadingZeros64() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:59 ZSTD_countLeadingZeros32() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:69 ZSTD_countTrailingZeros64() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:33 ZSTD_countTrailingZeros32() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:87 ZSTD_countLeadingZeros64() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:69 ZSTD_countTrailingZeros64() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:33 ZSTD_countTrailingZeros32() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:87 ZSTD_countLeadingZeros64() warn: inconsistent indenting lib/zstd/compress/../common/bits.h:59 ZSTD_countLeadingZeros32() warn: inconsistent indenting Old smatch warnings: lib/zstd/decompress/huf_decompress.c:617 HUF_decompress4X1_usingDTable_internal_body() warn: maybe use && instead of & lib/zstd/decompress/huf_decompress.c:617 HUF_decompress4X1_usingDTable_internal_body() warn: maybe use && instead of & lib/zstd/decompress/huf_decompress.c:1375 HUF_decompress4X2_usingDTable_internal_body() warn: maybe use && instead of & lib/zstd/decompress/huf_decompress.c:1375 HUF_decompress4X2_usingDTable_internal_body() warn: maybe use && instead of & lib/zstd/decompress/zstd_decompress_block.c:906 ZSTD_execSequenceEnd() warn: inconsistent indenting lib/zstd/decompress/zstd_decompress_block.c:954 ZSTD_execSequenceEndSplitLitBuffer() warn: inconsistent indenting lib/zstd/decompress/zstd_decompress_block.c:1607 ZSTD_decompressSequences_body() warn: inconsistent indenting lib/zstd/decompress/zstd_decompress_block.c:1026 ZSTD_execSequence() warn: inconsistent indenting lib/zstd/compress/zstd_compress.c:5210 ZSTD_initCDict_internal() warn: inconsistent indenting lib/zstd/compress/zstd_opt.c:1307 ZSTD_compressBlock_opt_generic() warn: inconsistent indenting lib/zstd/compress/zstd_lazy.c:1606 ZSTD_compressBlock_lazy_generic() warn: if statement not indented lib/zstd/compress/zstd_lazy.c:1634 ZSTD_compressBlock_lazy_generic() warn: Function too hairy. No more merges. lib/zstd/compress/zstd_lazy.c:1956 ZSTD_compressBlock_lazy_extDict_generic() warn: if statement not indented lib/zstd/compress/zstd_lazy.c:1987 ZSTD_compressBlock_lazy_extDict_generic() warn: if statement not indented lib/zstd/compress/zstd_lazy.c:1997 ZSTD_compressBlock_lazy_extDict_generic() warn: if statement not indented lib/zstd/compress/zstd_lazy.c:2029 ZSTD_compressBlock_lazy_extDict_generic() warn: if statement not indented lib/zstd/compress/zstd_lazy.c:2083 ZSTD_compressBlock_lazy_extDict_generic() warn: if statement not indented vim +59 lib/zstd/decompress/../common/bits.h 54 55 MEM_STATIC unsigned ZSTD_countLeadingZeros32(U32 val) 56 { 57 assert(val != 0); 58 # if (__GNUC__ >= 4) > 59 return (unsigned)__builtin_clz(val); 60 # else 61 return ZSTD_countLeadingZeros32_fallback(val); 62 # endif 63 } 64 65 MEM_STATIC unsigned ZSTD_countTrailingZeros64(U64 val) 66 { 67 assert(val != 0); 68 # if (__GNUC__ >= 4) && defined(__LP64__) > 69 return (unsigned)__builtin_ctzll(val); 70 # else 71 { 72 U32 mostSignificantWord = (U32)(val >> 32); 73 U32 leastSignificantWord = (U32)val; 74 if (leastSignificantWord == 0) { 75 return 32 + ZSTD_countTrailingZeros32(mostSignificantWord); 76 } else { 77 return ZSTD_countTrailingZeros32(leastSignificantWord); 78 } 79 } 80 # endif 81 } 82 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki