Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4763354ybg; Mon, 21 Oct 2019 14:10:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOgyIuCNc5TukwAPFfCzkHix0GhqF1H76G0bgTmZLx+dTn1VvJa5QPH+87YJWSfAtnBeOO X-Received: by 2002:a05:6402:304c:: with SMTP id bu12mr10872580edb.230.1571692228581; Mon, 21 Oct 2019 14:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571692228; cv=none; d=google.com; s=arc-20160816; b=D+yI7v9fnjNUML5WOc6DpSUyy3+toSuOVCA2W7Sw2Onjp0Yn630egRsKFLZVb5Ba+O SIdleD/g77WM2iBWINxynvC1tinw3qR5pgLzDjFnMQVdNj9PRAqy/WklXnWTtM4Fnt11 OQP2jRoMcIUfR3YDEqf/O/HnBtxAsk+PMMJ+dMkGK9LrCaLIPS/xKPMCv5+ngsR1M+MZ lOvOAXJZJnTfgzCN5+LJ7CavFFvE9JiUqCauLLyTGz7ALQyzhbyADmCt2uUvOU4L4pQY PDv9dxZS93CIjwYfe5nd1K3V3zrQMkif7Bw1j23cDIJ3GfFMGiBmUIv8TCuFaxrzfHzF l5/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:organization :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=K0Z8W68yUa9mRK8rnH8TTdSxHMIbym3Dqs881H5tBwI=; b=iRVKe/c2dxMnCXOHhOo/NiARblbhBocKza+5Sek2ybHi1k/hWUr7GL+U+quKBm6c8c 5zKLgAQt9CT4qe08RMFh2Eh0mwpTyaTzihrXbzo6P+pEguYFm+x1tdNVroWZB6G/7B64 jLNBiShFkLadviBr36BvYWYYNatvFm/3zga4BM+z3dJ4cmzUW4W6e4+LKax2OahBvTWb Ov2tC3HsSzuUJfzJkmA84O/YYEZcG9GVqVVucKzphacKFZsoYkJKKg+FtaQNfHGI1HyE 06eJKhVZisT8eqF6uc3kA76p1vy7ppKbV3gvHftibrqSUzKGX3ZeAxkH1uW2M5/1wTe7 //+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="UAJXca0/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24si10266121ejk.57.2019.10.21.14.10.04; Mon, 21 Oct 2019 14:10:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="UAJXca0/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730304AbfJUVJF (ORCPT + 99 others); Mon, 21 Oct 2019 17:09:05 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:38735 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726672AbfJUVJE (ORCPT ); Mon, 21 Oct 2019 17:09:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571692143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=K0Z8W68yUa9mRK8rnH8TTdSxHMIbym3Dqs881H5tBwI=; b=UAJXca0/2SDyA0wZL842Wdm+LnHc1+ygksrOAUsVNSpmht0uZDi2fada1GTwCAeWtv4cwj uGG6wtzOZgK1ZOfxN+3b2iFYldmpoN8FijrnnSmKZMkHNBkV8qOK+C2enFm5OybH8n7jWK iljhNOYhTePX3RAP4hmHK0I2VB51ffQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-46-xLZ80fs2M_WVBBw0tFv9FA-1; Mon, 21 Oct 2019 17:08:59 -0400 X-MC-Unique: xLZ80fs2M_WVBBw0tFv9FA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2928D1800D79; Mon, 21 Oct 2019 21:08:57 +0000 (UTC) Received: from linux-ws.nc.xsintricity.com (ovpn-112-37.rdu2.redhat.com [10.10.112.37]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 819B35C207; Mon, 21 Oct 2019 21:08:54 +0000 (UTC) Message-ID: <113038cde3f1335ba9bf4d66f22f0a536b70ef1f.camel@redhat.com> Subject: Re: [PATCH] RDMA/hns: Fix build error again From: Doug Ledford To: Arnd Bergmann , Lijun Ou , "Wei Hu(Xavier)" , Jason Gunthorpe Cc: Hulk Robot , YueHaibing , Shaobo Xu , Shamir Rabinovitch , Xi Wang , Tao Tian , Masahiro Yamada , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 21 Oct 2019 17:08:51 -0400 In-Reply-To: <20191007211826.3361202-1-arnd@arndb.de> References: <20191007211826.3361202-1-arnd@arndb.de> Organization: Red Hat, Inc. User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-xdJ3eT+RkUC2bnG5G+ko" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-xdJ3eT+RkUC2bnG5G+ko Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2019-10-07 at 23:18 +0200, Arnd Bergmann wrote: > This is not the first attempt to fix building random configurations, > unfortunately the attempt in commit a07fc0bb483e ("RDMA/hns: Fix build > error") caused a new problem when CONFIG_INFINIBAND_HNS_HIP06=3Dm > and CONFIG_INFINIBAND_HNS_HIP08=3Dy: >=20 > drivers/infiniband/hw/hns/hns_roce_main.o:(.rodata+0xe60): undefined > reference to `__this_module' >=20 > Revert commits a07fc0bb483e ("RDMA/hns: Fix build error") and > a3e2d4c7e766 ("RDMA/hns: remove obsolete Kconfig comment") to get > back to the previous state, then fix the issues described there > differently, by adding more specific dependencies: INFINIBAND_HNS > can now only be built-in if at least one of HNS or HNS3 are > built-in, and the individual back-ends are only available if > that code is reachable from the main driver. >=20 > Fixes: a07fc0bb483e ("RDMA/hns: Fix build error") > Fixes: a3e2d4c7e766 ("RDMA/hns: remove obsolete Kconfig comment") > Fixes: dd74282df573 ("RDMA/hns: Initialize the PCI device for hip08 > RoCE") > Fixes: 08805fdbeb2d ("RDMA/hns: Split hw v1 driver from hns roce > driver") > Signed-off-by: Arnd Bergmann This fix looks reasonable, but since I can't test this at all, and I'm personally tired of trying and failing to fix this issue, I need to ask if you've tried all the permutations for this just to confirm it works in all valid cases? --=20 Doug Ledford GPG KeyID: B826A3330E572FDD Fingerprint =3D AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD --=-xdJ3eT+RkUC2bnG5G+ko Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEErmsb2hIrI7QmWxJ0uCajMw5XL90FAl2uHmQACgkQuCajMw5X L91tVQ/9FAENQf09oJLkU4SWaKcw3v/yjdgKyHgQT8JXUeDA43uoSE75p0aHninr uyo7+nqCmvOXRMsrINbDAR+FfsVC1kNsqLXx0QJcTztVTCNfkXgHjn8X6c2CT/fi 6HupawhqmuklQO95W+MHijE/ej3qeBKTHOZIYsG1B0uTTQeSHU0PNlji7Cf/AcZr nK1+8PHs1cxtM+aWjFRbQNXcL/pslrXcdYWJIoXHylXkBkjDH/OzIN8hzW8XfAa5 hSlmEMA6H/YsnUjOn7mKk18dgAm0tPSAGemDx3zv3j0vlJUOussfRU8t1DdOmR0r nnRVsxF62Hrz0a3xQ0S3YSctv2dEzsAPno1fIWcAuqK5su93/kN9YcbLu98IPQ1o 2jMycnjtL7vEEzitbIwmcNXZ9Zl6pja9BhXMK34uEYRh/CIEqQt+esuhGNt3Kkua jy+FRmgCxshvFVN234XFWHtgXuGPehciYR26lRFsGJlIxMResn6ENWPHXVcze4Ot sVaHalxqElFmmEBW/p3JXp2GHSefrlndMpofIDTuRTudT2Q/t0ECVroknfDsmWNX 28rEqfGtUuHWeQr/zzV3SFVSMeo7tGhoSKAXy0e3rNuARvpzld9nM4M7SWdy4vkV 1pt7QmRU8g/OuXzsoQfRh087YxKHdFSjLtk3E/ZVvJmwsd/TTk0= =lpPZ -----END PGP SIGNATURE----- --=-xdJ3eT+RkUC2bnG5G+ko--