mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sa2ul.c:undefined reference to `crypto_authenc_extractkeys'
@ 2020-09-07  3:12 kernel test robot
  2020-09-07  4:58 ` Herbert Xu
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2020-09-07  3:12 UTC (permalink / raw)
  To: Keerthy; +Cc: kbuild-all, linux-kernel, Herbert Xu, Tero Kristo

[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f4d51dffc6c01a9e94650d95ce0104964f8ae822
commit: d2c8ac187fc922e73930a1b2f6a211e27f595d01 crypto: sa2ul - Add AEAD algorithm support
date:   7 weeks ago
config: x86_64-randconfig-s022-20200907 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-191-g10164920-dirty
        git checkout d2c8ac187fc922e73930a1b2f6a211e27f595d01
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   ld: drivers/crypto/sa2ul.o: in function `sa_aead_setkey.constprop.0':
>> sa2ul.c:(.text+0x3466): undefined reference to `crypto_authenc_extractkeys'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36450 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sa2ul.c:undefined reference to `crypto_authenc_extractkeys'
  2020-09-07  3:12 sa2ul.c:undefined reference to `crypto_authenc_extractkeys' kernel test robot
@ 2020-09-07  4:58 ` Herbert Xu
  2020-09-07  6:22   ` [PATCH] crypto: sa2ul - Select CRYPTO_AUTHENC Herbert Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Herbert Xu @ 2020-09-07  4:58 UTC (permalink / raw)
  To: kernel test robot
  Cc: Keerthy, kbuild-all, linux-kernel, Tero Kristo,
	Linux Crypto Mailing List

On Mon, Sep 07, 2020 at 11:12:53AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   f4d51dffc6c01a9e94650d95ce0104964f8ae822
> commit: d2c8ac187fc922e73930a1b2f6a211e27f595d01 crypto: sa2ul - Add AEAD algorithm support
> date:   7 weeks ago
> config: x86_64-randconfig-s022-20200907 (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
> reproduce:
>         # apt-get install sparse
>         # sparse version: v0.6.2-191-g10164920-dirty
>         git checkout d2c8ac187fc922e73930a1b2f6a211e27f595d01
>         # save the attached .config to linux build tree
>         make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    ld: drivers/crypto/sa2ul.o: in function `sa_aead_setkey.constprop.0':
> >> sa2ul.c:(.text+0x3466): undefined reference to `crypto_authenc_extractkeys'

Thanks for the report.  This should fix it:

---8<---
The sa2ul driver uses crypto_authenc_extractkeys and therefore
must select CRYPTO_AUTHENC.

Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index aa3a4ed07a66..c2950127def6 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -873,6 +873,7 @@ config CRYPTO_DEV_SA2UL
 	select CRYPTO_AES
 	select CRYPTO_AES_ARM64
 	select CRYPTO_ALGAPI
+	select CRYPTO_AUTHENC
 	select HW_RANDOM
 	select SG_SPLIT
 	help
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] crypto: sa2ul - Select CRYPTO_AUTHENC
  2020-09-07  4:58 ` Herbert Xu
@ 2020-09-07  6:22   ` Herbert Xu
  2020-09-07  6:35     ` J, KEERTHY
  0 siblings, 1 reply; 4+ messages in thread
From: Herbert Xu @ 2020-09-07  6:22 UTC (permalink / raw)
  To: kernel test robot
  Cc: Keerthy, kbuild-all, linux-kernel, Tero Kristo,
	Linux Crypto Mailing List

Resend with new subject.
 
---8<---
The sa2ul driver uses crypto_authenc_extractkeys and therefore
must select CRYPTO_AUTHENC.

Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index aa3a4ed07a66..c2950127def6 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -873,6 +873,7 @@ config CRYPTO_DEV_SA2UL
 	select CRYPTO_AES
 	select CRYPTO_AES_ARM64
 	select CRYPTO_ALGAPI
+	select CRYPTO_AUTHENC
 	select HW_RANDOM
 	select SG_SPLIT
 	help
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] crypto: sa2ul - Select CRYPTO_AUTHENC
  2020-09-07  6:22   ` [PATCH] crypto: sa2ul - Select CRYPTO_AUTHENC Herbert Xu
@ 2020-09-07  6:35     ` J, KEERTHY
  0 siblings, 0 replies; 4+ messages in thread
From: J, KEERTHY @ 2020-09-07  6:35 UTC (permalink / raw)
  To: Herbert Xu, kernel test robot
  Cc: kbuild-all, linux-kernel, Tero Kristo, Linux Crypto Mailing List



On 9/7/2020 11:52 AM, Herbert Xu wrote:
> Resend with new subject.

Thanks Herbert.

Reviewed-by: Keerthy <j-keerthy@ti.com>

>   
> ---8<---
> The sa2ul driver uses crypto_authenc_extractkeys and therefore
> must select CRYPTO_AUTHENC.
> 
> Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
> 
> diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
> index aa3a4ed07a66..c2950127def6 100644
> --- a/drivers/crypto/Kconfig
> +++ b/drivers/crypto/Kconfig
> @@ -873,6 +873,7 @@ config CRYPTO_DEV_SA2UL
>   	select CRYPTO_AES
>   	select CRYPTO_AES_ARM64
>   	select CRYPTO_ALGAPI
> +	select CRYPTO_AUTHENC
>   	select HW_RANDOM
>   	select SG_SPLIT
>   	help
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-07  6:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-07  3:12 sa2ul.c:undefined reference to `crypto_authenc_extractkeys' kernel test robot
2020-09-07  4:58 ` Herbert Xu
2020-09-07  6:22   ` [PATCH] crypto: sa2ul - Select CRYPTO_AUTHENC Herbert Xu
2020-09-07  6:35     ` J, KEERTHY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®