tree:
https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git crypto-pending
head: 29f68b17554ec4567502fc97eff48e7a893ece12
commit: 29da0bdee4632c377e7985bb1d6de9c2e9520425 [23/40] crypto: atmel-aes - switch to
skcipher API
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
git checkout 29da0bdee4632c377e7985bb1d6de9c2e9520425
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/crypto/atmel-aes.c: In function 'atmel_aes_register_algs':
> drivers/crypto/atmel-aes.c:2515:24: error: passing argument 1 of
'crypto_unregister_alg' from incompatible pointer type
[-Werror=incompatible-pointer-types]
crypto_unregister_alg(&aes_xts_alg);
^
In file included from drivers/crypto/atmel-aes.c:32:0:
include/linux/crypto.h:703:5: note: expected 'struct crypto_alg *' but argument
is of type 'struct skcipher_alg *'
int crypto_unregister_alg(struct crypto_alg *alg);
^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/crypto_unregister_alg +2515 drivers/crypto/atmel-aes.c
89a82ef87e0120 Cyrille Pitchen 2017-01-26 2507
bd3c7b5c2aba0d Nicolas Royer 2012-07-01 2508 return 0;
bd3c7b5c2aba0d Nicolas Royer 2012-07-01 2509
89a82ef87e0120 Cyrille Pitchen 2017-01-26 2510 #ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC
89a82ef87e0120 Cyrille Pitchen 2017-01-26 2511 /* i = ARRAY_SIZE(aes_authenc_algs); */
89a82ef87e0120 Cyrille Pitchen 2017-01-26 2512 err_aes_authenc_alg:
89a82ef87e0120 Cyrille Pitchen 2017-01-26 2513 for (j = 0; j < i; j++)
89a82ef87e0120 Cyrille Pitchen 2017-01-26 2514
crypto_unregister_aead(&aes_authenc_algs[j]);
89a82ef87e0120 Cyrille Pitchen 2017-01-26 @2515
crypto_unregister_alg(&aes_xts_alg);
89a82ef87e0120 Cyrille Pitchen 2017-01-26 2516 #endif
d52db5188a87dc Cyrille Pitchen 2016-10-03 2517 err_aes_xts_alg:
d52db5188a87dc Cyrille Pitchen 2016-10-03 2518
crypto_unregister_aead(&aes_gcm_alg);
d4419548dba957 Cyrille Pitchen 2015-12-17 2519 err_aes_gcm_alg:
29da0bdee4632c Ard Biesheuvel 2019-10-14 2520
crypto_unregister_skcipher(&aes_cfb64_alg);
bd3c7b5c2aba0d Nicolas Royer 2012-07-01 2521 err_aes_cfb64_alg:
bd3c7b5c2aba0d Nicolas Royer 2012-07-01 2522 i = ARRAY_SIZE(aes_algs);
bd3c7b5c2aba0d Nicolas Royer 2012-07-01 2523 err_aes_algs:
bd3c7b5c2aba0d Nicolas Royer 2012-07-01 2524 for (j = 0; j < i; j++)
29da0bdee4632c Ard Biesheuvel 2019-10-14 2525
crypto_unregister_skcipher(&aes_algs[j]);
bd3c7b5c2aba0d Nicolas Royer 2012-07-01 2526
bd3c7b5c2aba0d Nicolas Royer 2012-07-01 2527 return err;
bd3c7b5c2aba0d Nicolas Royer 2012-07-01 2528 }
bd3c7b5c2aba0d Nicolas Royer 2012-07-01 2529
:::::: The code at line 2515 was first introduced by commit
:::::: 89a82ef87e012061989fcaf7dd51d706ff2090e3 crypto: atmel-authenc - add support to
authenc(hmac(shaX), Y(aes)) modes
:::::: TO: Cyrille Pitchen <cyrille.pitchen(a)atmel.com>
:::::: CC: Herbert Xu <herbert(a)gondor.apana.org.au>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation