tree:
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git crypto-krb5
head: 355656a6fe584cb0b68ebc1ca2e56be073b706d0
commit: 077cafc75481bb885a6b044a03c73441e2aeef6f [25/35] crypto/krb5: Implement crypto
self-testing
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
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/dhowells/linux-fs.git/com...
git remote add dhowells-fs
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs crypto-krb5
git checkout 077cafc75481bb885a6b044a03c73441e2aeef6f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
crypto/krb5/selftest.c: In function 'krb5_load_enc_buf':
> crypto/krb5/selftest.c:304:25: warning: variable
'pad_len' set but not used [-Wunused-but-set-variable]
304 | unsigned
int conf_len, pad_len, enc_len, ct_len;
| ^~~~~~~
vim +/pad_len +304 crypto/krb5/selftest.c
295
296 /*
297 * Generate a buffer containing encryption test data.
298 */
299 static int krb5_load_enc_buf(const struct krb5_enc_test *test,
300 const struct krb5_buffer *plain,
301 void *buf)
302 {
303 const struct krb5_enctype *krb5 = test->krb5;
304 unsigned int conf_len, pad_len, enc_len, ct_len;
305 int ret;
306
307 conf_len = strlen(test->conf);
308 if (VALID((conf_len & 1) || conf_len / 2 != krb5->conf_len))
309 return -EINVAL;
310
311 if (krb5->pad) {
312 enc_len = round_up(krb5->conf_len + plain->len, krb5->block_len);
313 pad_len = enc_len - (krb5->conf_len + plain->len);
314 } else {
315 enc_len = krb5->conf_len + plain->len;
316 pad_len = 0;
317 }
318
319 ct_len = strlen(test->ct);
320 if (VALID((ct_len & 1) || ct_len / 2 != enc_len + krb5->cksum_len))
321 return -EINVAL;
322 ct_len = enc_len + krb5->cksum_len;
323
324 if ((ret = hex2bin(buf, test->conf, krb5->conf_len)) < 0)
325 return ret;
326 buf += krb5->conf_len;
327 memcpy(buf, plain->data, plain->len);
328 return 0;
329 }
330
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org