Patch "net/smc: Fix dependency of SMC on ISM" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net/smc: Fix dependency of SMC on ISM

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-smc-fix-dependency-of-smc-on-ism.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0d52b7ae5b0a68356425895de18620678d945147
Author: Gerd Bayer <gbayer@xxxxxxxxxxxxx>
Date:   Fri Oct 6 14:58:47 2023 +0200

    net/smc: Fix dependency of SMC on ISM
    
    [ Upstream commit a72178cfe855c283224f393d94a1332b90d1483e ]
    
    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: 89e7d2ba61b7 ("net/ism: Add new API for client registration")
    Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
    Closes: https://lore.kernel.org/linux-next/d53b5b50-d894-4df8-8969-fd39e63440ae@xxxxxxxxxxxxx/
    Co-developed-by: Wenjia Zhang <wenjia@xxxxxxxxxxxxx>
    Signed-off-by: Wenjia Zhang <wenjia@xxxxxxxxxxxxx>
    Signed-off-by: Gerd Bayer <gbayer@xxxxxxxxxxxxx>
    Reviewed-by: Simon Horman <horms@xxxxxxxxxx>
    Tested-by: Simon Horman <horms@xxxxxxxxxx> # build-tested
    Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
    Tested-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> # build-tested
    Link: https://lore.kernel.org/r/20231006125847.1517840-1-gbayer@xxxxxxxxxxxxx
    Signed-off-by: Paolo Abeni <pabeni@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/s390/net/Kconfig b/drivers/s390/net/Kconfig
index 9c67b97faba2b..610ad8a801a57 100644
--- a/drivers/s390/net/Kconfig
+++ b/drivers/s390/net/Kconfig
@@ -103,7 +103,7 @@ config CCWGROUP
 
 config ISM
 	tristate "Support for ISM vPCI Adapter"
-	depends on PCI && SMC
+	depends on PCI
 	default n
 	help
 	  Select this option if you want to use the Internal Shared Memory
diff --git a/net/smc/Kconfig b/net/smc/Kconfig
index 1ab3c5a2c5ada..746be39967683 100644
--- a/net/smc/Kconfig
+++ b/net/smc/Kconfig
@@ -2,6 +2,7 @@
 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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux