linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 6206/13220] lib/zstd/compress/zstd_compress_superblock.c:413:12: error: variable 'litLengthSum' set but not used
@ 2021-11-06 13:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-06 13:36 UTC (permalink / raw)
  To: Nick Terrell; +Cc: llvm, kbuild-all, Linux Memory Management List

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6a37ebbe07bf72cd5fd791d67a664f37c8f17a13
commit: ecea7adad80d9d230df766345e5f8061792da00d [6206/13220] lib: zstd: Upgrade to latest upstream zstd version 1.4.10
config: hexagon-buildonly-randconfig-r005-20211012 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dcf39554dbea780d6cb7e12239451ba47a2668)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ecea7adad80d9d230df766345e5f8061792da00d
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout ecea7adad80d9d230df766345e5f8061792da00d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon 

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

All errors (new ones prefixed by >>):

>> lib/zstd/compress/zstd_compress_superblock.c:413:12: error: variable 'litLengthSum' set but not used [-Werror,-Wunused-but-set-variable]
       size_t litLengthSum = 0;
              ^
   1 error generated.


vim +/litLengthSum +413 lib/zstd/compress/zstd_compress_superblock.c

   407	
   408	static size_t ZSTD_seqDecompressedSize(seqStore_t const* seqStore, const seqDef* sequences, size_t nbSeq, size_t litSize, int lastSequence) {
   409	    const seqDef* const sstart = sequences;
   410	    const seqDef* const send = sequences + nbSeq;
   411	    const seqDef* sp = sstart;
   412	    size_t matchLengthSum = 0;
 > 413	    size_t litLengthSum = 0;
   414	    while (send-sp > 0) {
   415	        ZSTD_sequenceLength const seqLen = ZSTD_getSequenceLength(seqStore, sp);
   416	        litLengthSum += seqLen.litLength;
   417	        matchLengthSum += seqLen.matchLength;
   418	        sp++;
   419	    }
   420	    assert(litLengthSum <= litSize);
   421	    if (!lastSequence) {
   422	        assert(litLengthSum == litSize);
   423	    }
   424	    return matchLengthSum + litSize;
   425	}
   426	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27475 bytes --]

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

only message in thread, other threads:[~2021-11-06 13:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-06 13:36 [linux-next:master 6206/13220] lib/zstd/compress/zstd_compress_superblock.c:413:12: error: variable 'litLengthSum' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox