Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3189340rdg; Tue, 17 Oct 2023 07:15:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFNmstVkn83WQh/KFOgZyA/pP1y9+Bz//5XaZbbVrM10L5pBQ6/UrHWORKqhAtvggOzGlGa X-Received: by 2002:a17:902:c949:b0:1ca:79b6:ce38 with SMTP id i9-20020a170902c94900b001ca79b6ce38mr2337131pla.17.1697552155124; Tue, 17 Oct 2023 07:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697552155; cv=none; d=google.com; s=arc-20160816; b=xFgDCyumUgGxyrCn41lAY5Ne3PQBAko9lnTHh+367TSJzTG7nfAX7wOSMYnX4PhWRk otYsblKdb/6hVJwHJCGRrBKfzg0wRl1KY2nbYmZ1i21O+DyuwDLal3ydFfObilaTKC5V 5lptVxsn3GV95SXHSlsndakXrsEhyLy+r0G0P4i0tW1wsDGlOXYL4NeL7VclEi0zPBTW IbubQIxSF9iCZKc8aF/o6ce0jZ1vWIfn2AdY3x+/tVRxrWwRG4pjcGWTFGYT5HPRZauG QYqQaNARDPMYotEmvHuUkdNSCMqicCJn2h0AOVtSymxfPcStwW8QInldYr2MqVy36OOC G0RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=ACi5eTARhKvQqEEvAFgNcoSlkqmFPO0yXbmr3r1fRE8=; fh=wPYsnGXFpIxAvx+BM+ZdCNI3HTGTNuziaCxnDI74v6Q=; b=th1CuOhPOC8UHTpV883+NzDfh/IaVPfC6q3By7F3RjMnD2TUjHkhEiq6yk88RmRnd7 M+HB5miqlplyTqxwNl78UF95VNAKbkYs73DYvpqMKJTe/Y5FYs8N4oKaclDGRRFepX5n JDjTw+RZsju0YAoTCGajBdPMrnWSsxRtNhGS53e9F5Jyjs2HtstiQ8RzgZMhRcamjoJt 2ufi0WX0tU2bj1MSjXYnKG7SfYqmshSiDtQgX0xsD0s8azifLQ3ySTgBo1zPQxjO7nZe Zyxasg74eNCQLXU+wiz1eu1I+EWhyEpcf06XCwQGN0L+ewsnU0kMIAadCyjupUtQcST2 sSYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=BuhHU8zO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id x6-20020a170902ec8600b001c3fa95ca18si2010034plg.333.2023.10.17.07.15.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 07:15:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=BuhHU8zO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7865680ABDE6; Tue, 17 Oct 2023 07:15:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235052AbjJQOPn (ORCPT + 99 others); Tue, 17 Oct 2023 10:15:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344055AbjJQOPh (ORCPT ); Tue, 17 Oct 2023 10:15:37 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A75B5FA; Tue, 17 Oct 2023 07:15:35 -0700 (PDT) Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39HECtqg021776; Tue, 17 Oct 2023 14:15:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=pp1; bh=ACi5eTARhKvQqEEvAFgNcoSlkqmFPO0yXbmr3r1fRE8=; b=BuhHU8zODY0fN5SbWxOQDDcAI672+9JEAF5zkuT8/mLZs+6SNkgXdiH1wfo8TQEmr5pt YavOjp/qqm2vAon2pF+c+Z2Ii7fVqxZGwMsjzp/JdQ22nJpOlsifa+RPMtc3vY4XhG2X +mwO8AZQCDBEDT492Nmrjm/Cwn21p94xTm04k0bPoDGi4tALw9JVA40024K4EVQvdQow o6nxhT6z7qv58AyIgcJAgRnZRufBEpSzHkoyhys/RLhr2k7A/YHbCPeqWmfPW4az1GTt /G6FIhcpWUXSSalX5Ib9W86QV5WxZ+zo0CfD89ap6ZKxG1/8wGHoavdOce5TxNZxCGS4 EQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tsuu0r426-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 14:15:27 +0000 Received: from m0353729.ppops.net (m0353729.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39HEDcHU025064; Tue, 17 Oct 2023 14:15:26 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tsuu0r40c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 14:15:26 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 39HC8IbU027154; Tue, 17 Oct 2023 14:15:24 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3tr6tk97t8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 14:15:24 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 39HEFLvK46792964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Oct 2023 14:15:21 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 567922004E; Tue, 17 Oct 2023 14:15:21 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0112520040; Tue, 17 Oct 2023 14:15:21 +0000 (GMT) Received: from [9.155.208.153] (unknown [9.155.208.153]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 17 Oct 2023 14:15:20 +0000 (GMT) Message-ID: Subject: Re: [PATCH net] net/smc: Fix dependency of SMC on ISM From: Gerd Bayer To: Randy Dunlap , 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 Date: Tue, 17 Oct 2023 16:15:20 +0200 In-Reply-To: References: <20231006125847.1517840-1-gbayer@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.48.4 (3.48.4-1.module_f38+17164+63eeee4a) X-TM-AS-GCONF: 00 X-Proofpoint-GUID: ygHLqLKxeizfpEdiz0ZOsakjb0xjj2Lq X-Proofpoint-ORIG-GUID: xrGBjupqLn5GVl5gb-Pha81j7jub6hSG Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-17_03,2023-10-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 clxscore=1015 mlxlogscore=856 suspectscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 mlxscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310170120 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 07:15:52 -0700 (PDT) On Mon, 2023-10-16 at 16:09 -0700, Randy Dunlap wrote: > Hi Gerd, >=20 > 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. > >=20 > > 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=3Dy and CONFIG_ISM=3Dm. 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. > >=20 > > Fixes: 89e7d2ba61b7 ("net/ism: Add new API for client > > registration") > >=20 > > 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 >=20 > With this patch, ISM can be build without SMC being enabled. >=20 > This leads to some build warnings: >=20 > ../drivers/s390/net/ism_drv.c:572:12: warning: 'ism_get_local_gid' > defined but not used [-Wunused-function] > =C2=A0 572 | static u64 ism_get_local_gid(struct ism_dev *ism) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~~~~~ > ../drivers/s390/net/ism_drv.c:506:12: warning: 'ism_get_chid' defined > but not used [-Wunused-function] > =C2=A0 506 | static u16 ism_get_chid(struct ism_dev *ism) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~ > ../drivers/s390/net/ism_drv.c:432:12: warning: 'ism_signal_ieq' > defined but not used [-Wunused-function] > =C2=A0 432 | static int ism_signal_ieq(struct ism_dev *ism, u64 rgid, u32 > trigger_irq, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~~ > ../drivers/s390/net/ism_drv.c:292:12: warning: 'ism_query_rgid' > defined but not used [-Wunused-function] > =C2=A0 292 | static int ism_query_rgid(struct ism_dev *ism, u64 rgid, u32 > vid_valid, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~~ Hi Randy, I must have missed testing a config of ISM without SMC. I'm working on a fix. Thanks for reporting, Gerd