[cryptodev:master 97/126] arch/x86/crypto/aesni-intel_glue.c:1505: undefined reference to `crypto_fpu_exit'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   a1c6fd4308d37f072e939a2782f24214115fc7e8
commit: 944585a64f5e37d11ff274a905304b565a88e147 [97/126] crypto: x86/aes-ni - remove special handling of AES in PCBC mode
config: x86_64-randconfig-u0-10171827 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
        git checkout 944585a64f5e37d11ff274a905304b565a88e147
        # save the attached .config to linux build tree
        make ARCH=x86_64 

Note: the cryptodev/master HEAD a1c6fd4308d37f072e939a2782f24214115fc7e8 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   arch/x86/crypto/aesni-intel_glue.o: In function `aesni_exit':
>> arch/x86/crypto/aesni-intel_glue.c:1505: undefined reference to `crypto_fpu_exit'
   arch/x86/crypto/aesni-intel_glue.o: In function `aesni_init':
>> arch/x86/crypto/aesni-intel_glue.c:1452: undefined reference to `crypto_fpu_init'
   arch/x86/crypto/aesni-intel_glue.c:1493: undefined reference to `crypto_fpu_exit'

vim +1505 arch/x86/crypto/aesni-intel_glue.c

0bd82f5f6 Tadeusz Struk   2010-11-04  1451  
fa46ccb8e Jussi Kivilinna 2012-05-11 @1452  	err = crypto_fpu_init();
fa46ccb8e Jussi Kivilinna 2012-05-11  1453  	if (err)
54b6a1bd5 Huang Ying      2009-01-18  1454  		return err;
54b6a1bd5 Huang Ying      2009-01-18  1455  
af05b3009 Herbert Xu      2015-05-28  1456  	err = crypto_register_algs(aesni_algs, ARRAY_SIZE(aesni_algs));
af05b3009 Herbert Xu      2015-05-28  1457  	if (err)
af05b3009 Herbert Xu      2015-05-28  1458  		goto fpu_exit;
af05b3009 Herbert Xu      2015-05-28  1459  
85671860c Herbert Xu      2016-11-22  1460  	err = crypto_register_skciphers(aesni_skciphers,
85671860c Herbert Xu      2016-11-22  1461  					ARRAY_SIZE(aesni_skciphers));
85671860c Herbert Xu      2016-11-22  1462  	if (err)
85671860c Herbert Xu      2016-11-22  1463  		goto unregister_algs;
85671860c Herbert Xu      2016-11-22  1464  
af05b3009 Herbert Xu      2015-05-28  1465  	err = crypto_register_aeads(aesni_aead_algs,
af05b3009 Herbert Xu      2015-05-28  1466  				    ARRAY_SIZE(aesni_aead_algs));
af05b3009 Herbert Xu      2015-05-28  1467  	if (err)
85671860c Herbert Xu      2016-11-22  1468  		goto unregister_skciphers;
af05b3009 Herbert Xu      2015-05-28  1469  
85671860c Herbert Xu      2016-11-22  1470  	for (i = 0; i < ARRAY_SIZE(aesni_skciphers); i++) {
85671860c Herbert Xu      2016-11-22  1471  		algname = aesni_skciphers[i].base.cra_name + 2;
85671860c Herbert Xu      2016-11-22  1472  		drvname = aesni_skciphers[i].base.cra_driver_name + 2;
85671860c Herbert Xu      2016-11-22  1473  		basename = aesni_skciphers[i].base.cra_driver_name;
85671860c Herbert Xu      2016-11-22  1474  		simd = simd_skcipher_create_compat(algname, drvname, basename);
85671860c Herbert Xu      2016-11-22  1475  		err = PTR_ERR(simd);
85671860c Herbert Xu      2016-11-22  1476  		if (IS_ERR(simd))
85671860c Herbert Xu      2016-11-22  1477  			goto unregister_simds;
85671860c Herbert Xu      2016-11-22  1478  
85671860c Herbert Xu      2016-11-22  1479  		aesni_simd_skciphers[i] = simd;
85671860c Herbert Xu      2016-11-22  1480  	}
af05b3009 Herbert Xu      2015-05-28  1481  
85671860c Herbert Xu      2016-11-22  1482  	return 0;
85671860c Herbert Xu      2016-11-22  1483  
85671860c Herbert Xu      2016-11-22  1484  unregister_simds:
85671860c Herbert Xu      2016-11-22  1485  	aesni_free_simds();
85671860c Herbert Xu      2016-11-22  1486  	crypto_unregister_aeads(aesni_aead_algs, ARRAY_SIZE(aesni_aead_algs));
85671860c Herbert Xu      2016-11-22  1487  unregister_skciphers:
85671860c Herbert Xu      2016-11-22  1488  	crypto_unregister_skciphers(aesni_skciphers,
85671860c Herbert Xu      2016-11-22  1489  				    ARRAY_SIZE(aesni_skciphers));
af05b3009 Herbert Xu      2015-05-28  1490  unregister_algs:
af05b3009 Herbert Xu      2015-05-28  1491  	crypto_unregister_algs(aesni_algs, ARRAY_SIZE(aesni_algs));
af05b3009 Herbert Xu      2015-05-28  1492  fpu_exit:
af05b3009 Herbert Xu      2015-05-28  1493  	crypto_fpu_exit();
af05b3009 Herbert Xu      2015-05-28  1494  	return err;
54b6a1bd5 Huang Ying      2009-01-18  1495  }
54b6a1bd5 Huang Ying      2009-01-18  1496  
54b6a1bd5 Huang Ying      2009-01-18  1497  static void __exit aesni_exit(void)
54b6a1bd5 Huang Ying      2009-01-18  1498  {
85671860c Herbert Xu      2016-11-22  1499  	aesni_free_simds();
af05b3009 Herbert Xu      2015-05-28  1500  	crypto_unregister_aeads(aesni_aead_algs, ARRAY_SIZE(aesni_aead_algs));
85671860c Herbert Xu      2016-11-22  1501  	crypto_unregister_skciphers(aesni_skciphers,
85671860c Herbert Xu      2016-11-22  1502  				    ARRAY_SIZE(aesni_skciphers));
fa46ccb8e Jussi Kivilinna 2012-05-11  1503  	crypto_unregister_algs(aesni_algs, ARRAY_SIZE(aesni_algs));
b23b64516 Andy Lutomirski 2011-05-16  1504  
b23b64516 Andy Lutomirski 2011-05-16 @1505  	crypto_fpu_exit();
54b6a1bd5 Huang Ying      2009-01-18  1506  }
54b6a1bd5 Huang Ying      2009-01-18  1507  

:::::: The code at line 1505 was first introduced by commit
:::::: b23b64516500df6b70fcafb820970f18538252cf crypto: aesni-intel - Merge with fpu.ko

:::::: TO: Andy Lutomirski <luto@xxxxxxx>
:::::: 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