All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-linux-intel-lts:4.19/android_r 20057/20689] arch/x86/crypto/poly1305_glue.c:212:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing
@ 2020-12-11 14:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-11 14:24 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
TO: "Jason A. Donenfeld" <zx2c4@kernel.org>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
CC: Herbert Xu <herbert@gondor.apana.org.au>

tree:   https://github.com/intel/linux-intel-lts.git 4.19/android_r
head:   4a6aef8d991e7c47e5da39927e0ad28ec90cd01b
commit: 1ff35ded67dfc68ff024c58e637dc9b9306a1800 [20057/20689] UPSTREAM: crypto: poly1305 - add new 32 and 64-bit generic versions
:::::: branch date: 30 hours ago
:::::: commit date: 7 weeks ago
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 <lkp@intel.com>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> arch/x86/crypto/poly1305_glue.c:212:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg]
      src += POLY1305_BLOCK_SIZE;
      ^

vim +212 arch/x86/crypto/poly1305_glue.c

1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  196  
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  197  static unsigned int crypto_poly1305_setdesckey(struct poly1305_desc_ctx *dctx,
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  198  					       const u8 *src, unsigned int srclen)
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  199  {
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  200  	if (!dctx->sset) {
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  201  		if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) {
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  202  			poly1305_integer_setkey(dctx->r, src);
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  203  			src += POLY1305_BLOCK_SIZE;
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  204  			srclen -= POLY1305_BLOCK_SIZE;
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  205  			dctx->rset = 1;
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  206  		}
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  207  		if (srclen >= POLY1305_BLOCK_SIZE) {
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  208  			dctx->s[0] = get_unaligned_le32(src +  0);
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  209  			dctx->s[1] = get_unaligned_le32(src +  4);
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  210  			dctx->s[2] = get_unaligned_le32(src +  8);
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  211  			dctx->s[3] = get_unaligned_le32(src + 12);
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05 @212  			src += POLY1305_BLOCK_SIZE;
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  213  			srclen -= POLY1305_BLOCK_SIZE;
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  214  			dctx->sset = true;
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  215  		}
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  216  	}
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  217  	return srclen;
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  218  }
1ff35ded67dfc6 Jason A. Donenfeld 2020-01-05  219  

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

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

only message in thread, other threads:[~2020-12-11 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11 14:24 [intel-linux-intel-lts:4.19/android_r 20057/20689] arch/x86/crypto/poly1305_glue.c:212:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.