Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3623459ybi; Mon, 29 Jul 2019 09:39:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqx09C1ibJgwH/Lq7YnXjp2I7Xy9IzSAavyFhwH2IkUuYZ3reh5QNwfjuPuUHkUQiVOzjBvs X-Received: by 2002:a17:902:29e6:: with SMTP id h93mr52569863plb.297.1564418391771; Mon, 29 Jul 2019 09:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564418391; cv=none; d=google.com; s=arc-20160816; b=VyEbX+kIYIfvk2qY/FQHBTmb2pk/c9hnBPkKCG9xvQgPkeyrQW5lAaTc2B7GOrzWD7 A1l/DlfYyqp2Rks9RmK97RTs4F5Ey+e5TqjvtG78QLMVh3lkeyW+bSEZnAxdu43bTVa2 llCrc3A6o7f8e/NUUk3U3gDJKUJIi+xh/COvpg9JPVqFeVuDCSPT+my1Skyc0z0ianD+ B/VU8T6mStoyqV509Nuz411oiUk6dh7kiRdHWR/jWkEiNn+ac15gZbcfH3KkXxF0Xaqe 0H5kaVx2Bt0C65euSlbP7WVUr5t+3FDNgmJesXZQYFlsq6iUw8HCkdfLAv5KUWxbRz7N nyFQ== 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; bh=rtCfUWekVjUZarjzpjj1cZxTi6CRsB8eU+4PMZjiho8=; b=l1kpywIpFcO2pF8tS1izlHn1rpeE72GESgUWX37F6zv9Ugn5/P536XIS+BvVWHf6Ws UU8GrNt0PmUlFMz6aiqvof6BPEKv5VNZEcV5oGkQXfANkrIC7L9w1pt+UWMirLrS9SYa 9+opUUBKMJ86mNzUvhabTMGaASeSp65NEpx++qi3g/5T6CBjycVxN49vv2BWtVYaeZtH t5HVmDU1jIpgKrJSSOJ3QStzo63FpwbTWI8RemEGpbOhKRdZ2vgMB0TI6C5Dpq51UFKB dteGzb1YdTviXmVMHass1Wtw36uUZDZ2cmviSDtj4wZLylXnqu7Vs+llKLaS65qohodS +1bg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 u18si24295739plq.311.2019.07.29.09.39.37; Mon, 29 Jul 2019 09:39:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728376AbfG2QFZ (ORCPT + 99 others); Mon, 29 Jul 2019 12:05:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40276 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbfG2QFZ (ORCPT ); Mon, 29 Jul 2019 12:05:25 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5E9F683F4C; Mon, 29 Jul 2019 16:05:24 +0000 (UTC) Received: from linux-ws.nc.xsintricity.com (ovpn-112-50.rdu2.redhat.com [10.10.112.50]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 15A8660856; Mon, 29 Jul 2019 16:05:22 +0000 (UTC) Message-ID: Subject: Re: [PATCH] RDMA/hns: Fix build error From: Doug Ledford To: Jason Gunthorpe , YueHaibing Cc: oulijun@huawei.com, xavier.huwei@huawei.com, leon@kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org Date: Mon, 29 Jul 2019 12:05:20 -0400 In-Reply-To: <20190724113252.GA28493@ziepe.ca> References: <20190723024908.11876-1-yuehaibing@huawei.com> <20190724065443.53068-1-yuehaibing@huawei.com> <20190724113252.GA28493@ziepe.ca> Organization: Red Hat, Inc. Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-CYvwRzUhBa6QpQtUigcr" 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.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 29 Jul 2019 16:05:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-CYvwRzUhBa6QpQtUigcr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2019-07-24 at 08:32 -0300, Jason Gunthorpe wrote: > On Wed, Jul 24, 2019 at 02:54:43PM +0800, YueHaibing wrote: > > If INFINIBAND_HNS_HIP08 is selected and HNS3 is m, > > but INFINIBAND_HNS is y, building fails: > >=20 > > drivers/infiniband/hw/hns/hns_roce_hw_v2.o: In function > > `hns_roce_hw_v2_exit': > > hns_roce_hw_v2.c:(.exit.text+0xd): undefined reference to > > `hnae3_unregister_client' > > drivers/infiniband/hw/hns/hns_roce_hw_v2.o: In function > > `hns_roce_hw_v2_init': > > hns_roce_hw_v2.c:(.init.text+0xd): undefined reference to > > `hnae3_register_client' > >=20 > > Also if INFINIBAND_HNS_HIP06 is selected and HNS_DSAF > > is m, but INFINIBAND_HNS is y, building fails: > >=20 > > drivers/infiniband/hw/hns/hns_roce_hw_v1.o: In function > > `hns_roce_v1_reset': > > hns_roce_hw_v1.c:(.text+0x39fa): undefined reference to > > `hns_dsaf_roce_reset' > > hns_roce_hw_v1.c:(.text+0x3a25): undefined reference to > > `hns_dsaf_roce_reset' > >=20 > > Reported-by: Hulk Robot > > 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: YueHaibing > > drivers/infiniband/hw/hns/Kconfig | 6 +++--- > > drivers/infiniband/hw/hns/Makefile | 8 ++------ > > 2 files changed, 5 insertions(+), 9 deletions(-) >=20 > did you test this approach with CONFIG_MODULES=3Dn? This version of the patch looks like the right fix. Applying to for-rc, thanks. --=20 Doug Ledford GPG KeyID: B826A3330E572FDD Fingerprint =3D AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD --=-CYvwRzUhBa6QpQtUigcr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEErmsb2hIrI7QmWxJ0uCajMw5XL90FAl0/GUAACgkQuCajMw5X L92dyhAAwOwf6FIG80LboLEhGbwdsAcYn/MWmplhDW38rT+sXO8TBe3D1XMwyysL V4PTYZBB2XmXy59VKyeg35ZliGzEWyN0AMVKCffIk1JhwBABkvebWC60BoFSaHQ5 1GE+EG31UfX9FE8xY+wLeUSAyhS01pONKGEoPSgWRYciyRHEO4UfQhR8nbsFzTlm b9CzS5Zq7czDnErMr/CeKEKSs0ecGPWkKBv+vTBUUGxhTqRzmjHV3XXiVihPUDtc hx/Ofif6PDsa71UiFJZvjEU6kfVDbnybbTNz4SkQ4f3O5T7y959pLUD0J2MgK1pV ljY5w1SD+IM6t7wAWElwBiU93ZEQrMyYaWZs3yzO4x3qqQu1O+eTsx/TD6kAaTu+ qYlYmtsD0np6w5uNHP2zivWMAGTKHNZ1eJwWMJhTp0343AixsK6lfAGk6knkA/5B sGyuZfSnydEkJDtvfIuioNFpteIuBvMUjG9wxRaR/KZnufvZNK8berpmFmY09+hX QR1wu7csB8frawvL9za4hCkKy48TuJTpBvcFjAjohgE1VAfajSr+dzyuW/kYP/hN RY9WBBF+HgLc9QSiIjk/Ze2NNdRg1tOrR6vsWFKU2lqNCW+xonmIuSeCLG7DYBgi AOaf0qs0CEOsNtTUXTv6s1HsAmknT5kRc36Z3aFK382FTSWAr88= =FEc+ -----END PGP SIGNATURE----- --=-CYvwRzUhBa6QpQtUigcr--