linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Nick Terrell <terrelln@fb.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 12781/13683] lib/zstd/compress/zstd_compress_superblock.c:413:12: error: variable 'litLengthSum' set but not used
Date: Fri, 12 Nov 2021 03:58:21 +0800	[thread overview]
Message-ID: <202111120312.833wII4i-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ad8be4fa6e8149ba6ea21fdf0089e8254437b3c8
commit: de181b7198eac0e11f97b57d7be42286064b8c79 [12781/13683] lib: zstd: Upgrade to latest upstream zstd version 1.4.10
config: riscv-buildonly-randconfig-r004-20211111 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 63ef0e17e28827eae53133b3467bdac7d9729318)
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
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=de181b7198eac0e11f97b57d7be42286064b8c79
        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 de181b7198eac0e11f97b57d7be42286064b8c79
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv 

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

                 reply	other threads:[~2021-11-11 19:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202111120312.833wII4i-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    --cc=terrelln@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).