mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
When the SMC protocol is built into the kernel proper while ISM is
configured to be built as module, linking the kernel fails due to
unresolved dependencies out of net/smc/smc_ism.o to
ism_get_smcd_ops, ism_register_client, and ism_unregister_client
as reported via the linux-next test automation (see link).
This however is a bug introduced a while ago.
Correct the dependency list in ISM's and SMC's Kconfig to reflect the
dependencies that are actually inverted. With this you cannot build a
kernel with CONFIG_SMC=y and CONFIG_ISM=m. Either ISM needs to be 'y',
too - or a 'n'. That way, SMC can still be configured on non-s390
architectures that do not have (nor need) an ISM driver.
Fixes: 89e7d2ba61 ("net/ism: Add new API for client registration")
Reported-by: Randy Dunlap <[email protected]>
Closes: https://lore.kernel.org/linux-next/[email protected]/
Co-developed-by: Wenjia Zhang <[email protected]>
Signed-off-by: Wenjia Zhang <[email protected]>
Signed-off-by: Gerd Bayer <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Tested-by: Simon Horman <[email protected]> # build-tested
Acked-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]> # build-tested
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
23 lines
668 B
Plaintext
23 lines
668 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config SMC
|
|
tristate "SMC socket protocol family"
|
|
depends on INET && INFINIBAND
|
|
depends on m || ISM != m
|
|
help
|
|
SMC-R provides a "sockets over RDMA" solution making use of
|
|
RDMA over Converged Ethernet (RoCE) technology to upgrade
|
|
AF_INET TCP connections transparently.
|
|
The Linux implementation of the SMC-R solution is designed as
|
|
a separate socket family SMC.
|
|
|
|
Select this option if you want to run SMC socket applications
|
|
|
|
config SMC_DIAG
|
|
tristate "SMC: socket monitoring interface"
|
|
depends on SMC
|
|
help
|
|
Support for SMC socket monitoring interface used by tools such as
|
|
smcss.
|
|
|
|
if unsure, say Y.
|