mac802154: select CRYPTO when needed
Subsystems (3)
PATCH 1/1 mac802154: select CRYPTO when needed
The mac802154 subsystem uses functions from the crypto layer and correctly selects the individual crypto algorithms, but fails to build when the crypto layer is disabled altogether:
crypto/built-in.o: In function `crypto_ctr_free':
:(.text+0x80): undefined reference to crypto_drop_spawn' crypto/built-in.o: In function crypto_rfc3686_free':
:(.text+0xac): undefined reference to crypto_drop_spawn' crypto/built-in.o: In function crypto_ctr_crypt':
:(.text+0x2f0): undefined reference to blkcipher_walk_virt_block' :(.text+0x2f8): undefined reference to crypto_inc'
To solve that, this patch also selects the core crypto code, like all other users of that code do.
---
Found in ARM randconfig testing
net/mac802154/Kconfig +1 -0
@@ -1,6 +1,7 @@ config MAC802154 tristate "Generic IEEE 802.15.4 Soft Networking Stack (mac802154)" depends on IEEE802154 + select CRYPTO select CRC_CCITT select CRYPTO_AUTHENC select CRYPTO_CCM
Hello.
Quoted 24 lines · Arnd Bergmann
The mac802154 subsystem uses functions from the crypto layer and correctly selects the individual crypto algorithms, but fails to build when the crypto layer is disabled altogether:
crypto/built-in.o: In function `crypto_ctr_free':
:(.text+0x80): undefined reference tocrypto_drop_spawn' crypto/built-in.o: In functioncrypto_rfc3686_free':
:(.text+0xac): undefined reference tocrypto_drop_spawn' crypto/built-in.o: In functioncrypto_ctr_crypt':
:(.text+0x2f0): undefined reference toblkcipher_walk_virt_block' :(.text+0x2f8): undefined reference tocrypto_inc'To solve that, this patch also selects the core crypto code, like all other users of that code do.
Signed-off-by Arnd Bergmann <[email protected]>---
Found in ARM randconfig testingnet/mac802154/Kconfig +0
-0
net/mac802154/Kconfig line 7
Quoted 7 lines
net/mac802154/Kconfig +1
-0@@ -1,6 +1,7 @@ config MAC802154 tristate "Generic IEEE 802.15.4 Soft Networking Stack (mac802154)" depends on IEEE802154 + select CRYPTO select CRC_CCITT select CRYPTO_AUTHENC select CRYPTO_CCM
Good point. I thought that would have been pulled in by CRYPTO_* automatically. Nicely spotted.
regards
Stefan Schmidt
Hi Arnd,
Quoted 12 lines
The mac802154 subsystem uses functions from the crypto layer and correctly selects the individual crypto algorithms, but fails to build when the crypto layer is disabled altogether:
crypto/built-in.o: In function `crypto_ctr_free':
:(.text+0x80): undefined reference tocrypto_drop_spawn' crypto/built-in.o: In functioncrypto_rfc3686_free':
:(.text+0xac): undefined reference tocrypto_drop_spawn' crypto/built-in.o: In functioncrypto_ctr_crypt':
:(.text+0x2f0): undefined reference toblkcipher_walk_virt_block' :(.text+0x2f8): undefined reference tocrypto_inc'
Quoted 4 lines
To solve that, this patch also selects the core crypto code, like all other users of that code do.
Signed-off-by Arnd Bergmann <[email protected]>
patch has been applied to bluetooth-next tree.
Regards
Marcel