Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp613401rdb; Fri, 6 Oct 2023 13:06:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHx5RVEbOXW47R8jo5wttjS0yLRxLU2ct9J/nWkSgq6DgDzI4vdxqqHUf3UkSzVFF0LlSgM X-Received: by 2002:a05:6a20:431a:b0:159:6b5c:5653 with SMTP id h26-20020a056a20431a00b001596b5c5653mr10019850pzk.37.1696622776083; Fri, 06 Oct 2023 13:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696622776; cv=none; d=google.com; s=arc-20160816; b=mcS6Fm1DaBpMGQujKSa4ALaIxyw2RS1TvMvdgFisBpqL0iIQAo3SnFYV4sxI7gNS56 vuY5QMCn2xppLb4h3kd/iOHcU/dNT7ZelDIxSfg0Kfuq/ymVnJ7xR+slKPyBIqZdkWVA G0ddfbTv40sOe3He+ETpZCdrgt/HfupWK8uLABseoaZF2ieHdSaie02EjlQqABX+BWHs 5EFrVjKetCTXrGghV7TYAMaACMEQAd0+nsRcRXTjby9CMeUZRTkQD/jbAuZ4MpgdmDxu mTvhZJOsE3p91rqpsW/3z+x13VQsYn0Hbo3UPkTcVGTDpiANM7dImJTWMhb+aObTXVUX ufFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CcUhLWm6Uitg1RPnfOWl75RnCJGsrCoiVJ2CURtoDI4=; fh=KSxE9qn0Tats9cDHBRLwczoD30YqsbkcmSdp2TBPeEI=; b=w0C6gBn4yTclQrKZkjv6KiOFcSMc0CINq4+kNBTH4Gyl5RilhjXb9sAvdrS4gHDXnx EvVA5pOdWh7VSegUi8IN3NAZ5EZ4w/XcW3HfPF3xdX9E1Xh6yrjY4EJY1x0i4eovf5cu YXmW6BrGvcyl18c+6e6OiKcMFEwxpj4fCAqBVLgFqFvqyMCKcluLO75X1WH7eIQREC4T FTGedeL1sTROVfKwIZuQkeavR5m5PFpRPJj0XhSRXadZvsUPk57XYgc8JsJTiQ+YKtgr DaFQISJWaoeGydyA+g1OJMtSu8GbNe4CsJ6CJuZqXAB0VZHqu8Gj8717zG5JeX6QGZ7W imWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=eXCOyQZ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id fc19-20020a056a002e1300b006933e8fec5asi2299976pfb.383.2023.10.06.13.06.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 13:06:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=eXCOyQZ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 572E28065E04; Fri, 6 Oct 2023 13:06:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233339AbjJFUGC (ORCPT + 99 others); Fri, 6 Oct 2023 16:06:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233306AbjJFUGB (ORCPT ); Fri, 6 Oct 2023 16:06:01 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17B09CA; Fri, 6 Oct 2023 13:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=CcUhLWm6Uitg1RPnfOWl75RnCJGsrCoiVJ2CURtoDI4=; b=eXCOyQZ0Rru3UbvhtaghjcnmMt fFgKul/RuM3GvX8rjYcZiPvsnOwVv5k7EAhycrqnQEox2XMJzmhylmZmqaExuwsTa6VYKXpn4EfbM VChQIIXMP634743XyJg86/Ctx5uZSwDSexWOS1jJhqS3JjFwmxVgbvSeYG7U0BYFoeNtFTP2ounMO 7ixHIFxD0tVzbUw9behh9HO/2i0lVkAqeYEVx6gMDvbXEGlcWuLYai/kr2FRC8tP+K3GjhgkVQAuQ En9YQFy+7rVwUYqlpfCtxlSa1BJu72kxzYhIVClbyOAcgePb1b2YW2k+z+t5tiPr7bTKjMcLsz/nW xbvf6qNA==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qor5C-006QO2-15; Fri, 06 Oct 2023 20:05:58 +0000 Message-ID: <1c6bdfbf-54c1-4251-916e-9a703a9f644c@infradead.org> Date: Fri, 6 Oct 2023 13:05:57 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net] net/smc: Fix dependency of SMC on ISM Content-Language: en-US To: Gerd Bayer , wenjia@linux.ibm.com Cc: linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, netdev@vger.kernel.org, raspl@linux.ibm.com, sfr@canb.auug.org.au, alibuda@linux.alibaba.com, wintera@linux.ibm.com, guwen@linux.alibaba.com, tonylu@linux.alibaba.com, jaka@linux.ibm.com References: <20231006125847.1517840-1-gbayer@linux.ibm.com> From: Randy Dunlap In-Reply-To: <20231006125847.1517840-1-gbayer@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 06 Oct 2023 13:06:13 -0700 (PDT) X-Spam-Level: ** Hi, On 10/6/23 05:58, Gerd Bayer wrote: > 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 > Closes: https://lore.kernel.org/linux-next/d53b5b50-d894-4df8-8969-fd39e63440ae@infradead.org/ > Co-developed-by: Wenjia Zhang > Signed-off-by: Wenjia Zhang > Signed-off-by: Gerd Bayer Works for me. Thanks. Acked-by: Randy Dunlap Tested-by: Randy Dunlap # build-tested > --- > drivers/s390/net/Kconfig | 2 +- > net/smc/Kconfig | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/s390/net/Kconfig b/drivers/s390/net/Kconfig > index 74760c1a163b..4902d45e929c 100644 > --- a/drivers/s390/net/Kconfig > +++ b/drivers/s390/net/Kconfig > @@ -102,7 +102,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 1ab3c5a2c5ad..746be3996768 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 -- ~Randy