]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
macsec: fix crypto Kconfig dependency
authorArnd Bergmann <arnd@arndb.de>
Sun, 17 Apr 2016 09:19:55 +0000 (11:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2016 22:39:02 +0000 (18:39 -0400)
commitab2ed0171a50ddee8390f472bb83f60d393b4b04
tree7d6de8c28efce6d35fce10ebfad3fd785a811278
parent6517eb59b03965689e6bb16bb2d480096b3ef95d
macsec: fix crypto Kconfig dependency

The new MACsec driver uses the AES crypto algorithm, but can be configured
even if CONFIG_CRYPTO is disabled, leading to a build error:

warning: (MAC80211 && MACSEC) selects CRYPTO_GCM which has unmet direct dependencies (CRYPTO)
warning: (BT && CEPH_LIB && INET && MAC802154 && MAC80211 && BLK_DEV_RBD && MACSEC && AIRO_CS && LIBIPW && HOSTAP && USB_WUSB && RTLLIB_CRYPTO_CCMP && FS_ENCRYPTION && EXT4_ENCRYPTION && CEPH_FS && BIG_KEYS && ENCRYPTED_KEYS) selects CRYPTO_AES which has unmet direct dependencies (CRYPTO)
crypto/built-in.o: In function `gcm_enc_copy_hash':
aes_generic.c:(.text+0x2b8): undefined reference to `crypto_xor'
aes_generic.c:(.text+0x2dc): undefined reference to `scatterwalk_map_and_copy'

This adds an explicit 'select CRYPTO' statement the way that other
drivers handle it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/Kconfig