OpenCloudOS-Kernel/drivers/net/ethernet/chelsio/inline_crypto
Randy Dunlap 6e915b2748 net: chelsio: inline_crypto: fix Kconfig and build errors
Fix build errors when TLS=m, TLS_TOE=y, and CRYPTO_DEV_CHELSIO_TLS=y.

Having (tristate) CRYPTO_DEV_CHELSIO_TLS depend on (bool) TLS_TOE
is not strong enough to prevent the bad combination of TLS=m and
CRYPTO_DEV_CHELSIO_TLS=y, so add a dependency on TLS to prevent the
problematic kconfig combination.

Fixes these build errors:

hppa-linux-ld: drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.o: in function `chtls_free_uld':
 drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c:165: undefined reference to `tls_toe_unregister_device'
hppa-linux-ld: drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.o: in function `chtls_register_dev':
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c:204: undefined reference to `tls_toe_register_device'

Fixes: 53b4414a70 ("net/tls: allow compiling TLS TOE out")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20201019181059.22634-1-rdunlap@infradead.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-10-20 18:15:53 -07:00
..
ch_ipsec cxgb4/ch_ipsec: Replace the module name to ch_ipsec from chcr 2020-10-15 09:28:34 -07:00
ch_ktls cxgb4/ch_ktls: ktls stats are added at port level 2020-09-29 13:57:03 -07:00
chtls chelsio/chtls: fix writing freed memory 2020-10-20 17:29:17 -07:00
Kconfig net: chelsio: inline_crypto: fix Kconfig and build errors 2020-10-20 18:15:53 -07:00
Makefile crypto/chcr: move nic TLS functionality to drivers/net 2020-09-11 17:26:39 -07:00