[cryptodev:master 181/206] drivers/crypto/n2_core.c:761:46: error: 'tfm' undeclared; did you mean 'tm'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   08c327f63f355fce190ac3e1ac62e19d2c5f004d
commit: d4b90dbc8578c567827901e625018ead7561f741 [181/206] crypto: n2/des - switch to new verification routines
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d4b90dbc8578c567827901e625018ead7561f741
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers/crypto/n2_core.c: In function 'n2_des_setkey':
>> drivers/crypto/n2_core.c:761:46: error: 'tfm' undeclared (first use in this function); did you mean 'tm'?
     struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm);
                                                 ^~~
                                                 tm
   drivers/crypto/n2_core.c:761:46: note: each undeclared identifier is reported only once for each function it appears in
   drivers/crypto/n2_core.c: In function 'n2_3des_setkey':
   drivers/crypto/n2_core.c:779:46: error: 'tfm' undeclared (first use in this function); did you mean 'tm'?
     struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm);
                                                 ^~~
                                                 tm

vim +761 drivers/crypto/n2_core.c

0a625fd2abaa0a David S. Miller 2010-05-19  756  
0a625fd2abaa0a David S. Miller 2010-05-19  757  static int n2_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key,
0a625fd2abaa0a David S. Miller 2010-05-19  758  			 unsigned int keylen)
0a625fd2abaa0a David S. Miller 2010-05-19  759  {
d4b90dbc8578c5 Ard Biesheuvel  2019-08-15  760  	struct n2_cipher_context *ctx = crypto_ablkcipher_ctx(cipher);
0a625fd2abaa0a David S. Miller 2010-05-19 @761  	struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm);
0a625fd2abaa0a David S. Miller 2010-05-19  762  	int err;
0a625fd2abaa0a David S. Miller 2010-05-19  763  
d4b90dbc8578c5 Ard Biesheuvel  2019-08-15  764  	err = verify_ablkcipher_des_key(cipher, key);
d4b90dbc8578c5 Ard Biesheuvel  2019-08-15  765  	if (err)
d4b90dbc8578c5 Ard Biesheuvel  2019-08-15  766  		return err;
0a625fd2abaa0a David S. Miller 2010-05-19  767  
d4b90dbc8578c5 Ard Biesheuvel  2019-08-15  768  	ctx->enc_type = n2alg->enc_type;
0a625fd2abaa0a David S. Miller 2010-05-19  769  
0a625fd2abaa0a David S. Miller 2010-05-19  770  	ctx->key_len = keylen;
0a625fd2abaa0a David S. Miller 2010-05-19  771  	memcpy(ctx->key.des, key, keylen);
0a625fd2abaa0a David S. Miller 2010-05-19  772  	return 0;
0a625fd2abaa0a David S. Miller 2010-05-19  773  }
0a625fd2abaa0a David S. Miller 2010-05-19  774  

:::::: The code at line 761 was first introduced by commit
:::::: 0a625fd2abaa0aa0a6852b153d429dbc784748cc crypto: n2 - Add Niagara2 crypto driver

:::::: TO: David S. Miller <davem@xxxxxxxxxxxxx>
:::::: CC: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux