Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp433596rdb; Fri, 6 Oct 2023 07:48:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJV/ru7ZP1lOEXWsoNrh/Nbx6GBfYcsLCBo+nJjBQPh0kSK1Q5CE/U4gP1P6h5xhZMTOaA X-Received: by 2002:a17:902:6ac4:b0:1c6:d34:5279 with SMTP id i4-20020a1709026ac400b001c60d345279mr7864341plt.13.1696603714672; Fri, 06 Oct 2023 07:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696603714; cv=none; d=google.com; s=arc-20160816; b=zX8DroJQIN6Rii9GRpgQ/8Dn65Eqop0EXMZoG4AWzPisrnCWa4ZwlGcP2GbJQ4F3uv cAVfwtrgLlZIwOUiSYYHAcThlPEYXow3NGuE+Uz2URfc8u0voM2nbtB7GfhBFROEN+Z/ PFe5li/1oBMkUICkmMQqhy23tbPiCreN2wSM95VHIB0H92Y9wXQ3wXDEZe9xhVh6UfAM kYnkmKw83R6spYjqY/ludRWDo8iZx8L4cqTHebxZnKdpSUXLgvPplClrc8LNo+qDw+Ml RQ/en2wJJw0w8M8vQ+wlPZeHasOgYQkMINI+TqZ5Vj3abTWIqm6ae2/DgmG5w+qDojL0 6VOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=G3+jz7bPf2e+5LPN7p6KJdHZ2trNoWQWBrPLsEBsQiQ=; fh=RXrsQEVa5RNGIeg/1NmhIJI2UBaQ22O6e2cy5BYWE4s=; b=pWD7WwGrjLmAfLMYae2C8GQ7DRQ8pvhWV6HlF140igVjBolSOWtoGE8pVumxhLmjTy JcXZ6zDmMtUsY/D/jywDu1FnfKTTfXcvo3LJC0GEowYmeLK8RZNf/V4BdFGbZNFHEWOv 5VN4cn3OjDxqGHtIewUnmEPbdy5KLTOn0Nz2jhpNpOZLBM+lgQWBt5EsTqgU9KKz/MOo +m/FjxEQiw7Y612VjfdPWXl2Abr8WpvYbDRIifB02O/RyIIBfwbLQ+5JKaQA/9i+BdmA jKWJJRpV2l/DDBoPnUlOV3DF3nDd8GSNC653NWSURKdU8G7r1JrkFKe+rrEaC2JfWecD l5Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pw4cglRd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ij15-20020a170902ab4f00b001c76a06b5b5si3814586plb.298.2023.10.06.07.48.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 07:48:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pw4cglRd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A6A8282FABE7; Fri, 6 Oct 2023 07:48:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232607AbjJFOs0 (ORCPT + 99 others); Fri, 6 Oct 2023 10:48:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232611AbjJFOsW (ORCPT ); Fri, 6 Oct 2023 10:48:22 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0DBBCF; Fri, 6 Oct 2023 07:48:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1391C433C8; Fri, 6 Oct 2023 14:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696603700; bh=tpz2lJHsFpXAdojf/r2F+CjbjlhID/zdHJhAMnUPoCo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pw4cglRdfnNQIC+v8UHZFG9a8HZIFKlwmn8crhYx3+RrtDuK/Umh0/7FsERtCn7R4 yEaIj7ty0itLM2i1EjAWcqxRaQDxBDvKKBCk4aSis+ZYZGyJ7rirPb8+wvJcfTe2X6 ORJvvnuzdLyrsQnhNN/1hn19HGLs6ceD84WuebNp0U08JxkqLJeJANE51iAQfxUKxc NjMyXpnXhWpL/Fpew1ALhW7OrQpKPE8ZTT9MBfOmzjIanNM2T7svMBG08yXegkygnx iTMvKnL+r2rU66lKgBvyFyBLiVz1aqQZDgZx0RD/aBKRNa5ytE46xX8PqmZ2Iu0aNn WkJqroi9ENOfw== Date: Fri, 6 Oct 2023 16:48:15 +0200 From: Simon Horman To: Gerd Bayer Cc: rdunlap@infradead.org, wenjia@linux.ibm.com, 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 Subject: Re: [PATCH net] net/smc: Fix dependency of SMC on ISM Message-ID: References: <20231006125847.1517840-1-gbayer@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231006125847.1517840-1-gbayer@linux.ibm.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 07:48:33 -0700 (PDT) On Fri, Oct 06, 2023 at 02:58:47PM +0200, 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 Reviewed-by: Simon Horman Tested-by: Simon Horman # build-tested