Re: [PATCH 1/3] crypto: Change lz4 modules to work with new lz4 compressor module version

From: kbuild test robot
Date: Wed Dec 21 2016 - 00:26:08 EST


Hi Sven,

[auto build test ERROR on linus/master]
[also build test ERROR on next-20161221]
[cannot apply to v4.9]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Sven-Schmidt/Update-LZ4-compressor-module/20161221-130109
config: i386-randconfig-x003-201651 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

Note: the linux-review/Sven-Schmidt/Update-LZ4-compressor-module/20161221-130109 HEAD 08652114d6d8867d2e8b3545b5e9f8a2fe11a5d7 builds fine.
It only hurts bisectibility.

All errors (new ones prefixed by >>):

crypto/lz4.c: In function 'lz4_compress_crypto':
>> crypto/lz4.c:55:8: error: implicit declaration of function 'LZ4_compress_default' [-Werror=implicit-function-declaration]
err = LZ4_compress_default(src, dst, slen, tmp_len, ctx->lz4_comp_mem);
^~~~~~~~~~~~~~~~~~~~
crypto/lz4.c: In function 'lz4_decompress_crypto':
>> crypto/lz4.c:71:8: error: implicit declaration of function 'LZ4_decompress_safe' [-Werror=implicit-function-declaration]
err = LZ4_decompress_safe(src, dst, __slen, tmp_len);
^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
crypto/lz4hc.c: In function 'lz4hc_compress_crypto':
>> crypto/lz4hc.c:55:8: error: implicit declaration of function 'LZ4_compress_HC' [-Werror=implicit-function-declaration]
err = LZ4_compress_HC(src, dst, slen, tmp_len, LZ4HC_DEFAULT_CLEVEL, ctx->lz4hc_comp_mem);
^~~~~~~~~~~~~~~
>> crypto/lz4hc.c:55:49: error: 'LZ4HC_DEFAULT_CLEVEL' undeclared (first use in this function)
err = LZ4_compress_HC(src, dst, slen, tmp_len, LZ4HC_DEFAULT_CLEVEL, ctx->lz4hc_comp_mem);
^~~~~~~~~~~~~~~~~~~~
crypto/lz4hc.c:55:49: note: each undeclared identifier is reported only once for each function it appears in
crypto/lz4hc.c: In function 'lz4hc_decompress_crypto':
>> crypto/lz4hc.c:71:8: error: implicit declaration of function 'LZ4_decompress_safe' [-Werror=implicit-function-declaration]
err = LZ4_decompress_safe(src, dst, __slen, (int)tmp_len);
^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/LZ4_compress_default +55 crypto/lz4.c

49 unsigned int slen, u8 *dst, unsigned int *dlen)
50 {
51 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm);
52 size_t tmp_len = *dlen;
53 int err;
54
> 55 err = LZ4_compress_default(src, dst, slen, tmp_len, ctx->lz4_comp_mem);
56
57 if (err < 0)
58 return -EINVAL;
59
60 *dlen = tmp_len;
61 return 0;
62 }
63
64 static int lz4_decompress_crypto(struct crypto_tfm *tfm, const u8 *src,
65 unsigned int slen, u8 *dst, unsigned int *dlen)
66 {
67 int err;
68 size_t tmp_len = *dlen;
69 size_t __slen = slen;
70
> 71 err = LZ4_decompress_safe(src, dst, __slen, tmp_len);
72 if (err < 0)
73 return -EINVAL;
74

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip