[PATCH 07/12] crypto: ccp - permit asynchronous skcipher as fallback

kernel test robot lkp at intel.com
Thu Jun 25 12:24:07 EDT 2020

Hi Ard,

I love your patch! Yet something to improve:

[auto build test ERROR on cryptodev/master]
[also build test ERROR on crypto/master sunxi/sunxi/for-next v5.8-rc2 next-20200625]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in

url:    https://github.com/0day-ci/linux/commits/Ard-Biesheuvel/crypto-permit-asynchronous-skciphers-as-driver-fallbacks/20200625-204707
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: x86_64-rhel-7.6 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   drivers/crypto/ccp/ccp-crypto-aes-xts.c: In function 'ccp_aes_xts_exit_tfm':
>> drivers/crypto/ccp/ccp-crypto-aes-xts.c:223:38: error: passing argument 1 of 'crypto_free_sync_skcipher' from incompatible pointer type [-Werror=incompatible-pointer-types]
     223 |  crypto_free_sync_skcipher(ctx->u.aes.tfm_skcipher);
         |                            ~~~~~~~~~~^~~~~~~~~~~~~
         |                                      |
         |                                      struct crypto_skcipher *
   In file included from include/crypto/internal/skcipher.h:12,
                    from include/crypto/xts.h:6,
                    from drivers/crypto/ccp/ccp-crypto-aes-xts.c:16:
   include/crypto/skcipher.h:205:75: note: expected 'struct crypto_sync_skcipher *' but argument is of type 'struct crypto_skcipher *'
     205 | static inline void crypto_free_sync_skcipher(struct crypto_sync_skcipher *tfm)
         |                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
   cc1: some warnings being treated as errors

vim +/crypto_free_sync_skcipher +223 drivers/crypto/ccp/ccp-crypto-aes-xts.c

1d6b8a6f64076a Tom Lendacky   2013-11-12  218  
be9fe620af63e7 Ard Biesheuvel 2019-11-09  219  static void ccp_aes_xts_exit_tfm(struct crypto_skcipher *tfm)
1d6b8a6f64076a Tom Lendacky   2013-11-12  220  {
be9fe620af63e7 Ard Biesheuvel 2019-11-09  221  	struct ccp_ctx *ctx = crypto_skcipher_ctx(tfm);
1d6b8a6f64076a Tom Lendacky   2013-11-12  222  
7f28615df88a63 Kees Cook      2018-09-18 @223  	crypto_free_sync_skcipher(ctx->u.aes.tfm_skcipher);
1d6b8a6f64076a Tom Lendacky   2013-11-12  224  }
1d6b8a6f64076a Tom Lendacky   2013-11-12  225  

0-DAY CI Kernel Test Service, Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 49250 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200626/cedb7ae4/attachment-0001.gz>

More information about the linux-arm-kernel mailing list