Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9021388ybi; Tue, 23 Jul 2019 20:12:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtXsz5rkZa1j2i/9Fe5Vf6k7mquD0fWx7LcXUkdq4v6iz3Zqp2vsY0J7iM6Vx6b3c+kx25 X-Received: by 2002:a63:3006:: with SMTP id w6mr1248510pgw.440.1563937941493; Tue, 23 Jul 2019 20:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563937941; cv=none; d=google.com; s=arc-20160816; b=gDsncXT9hWQUS/6+TaVE24HDeq1cB9V4ObNJ/IBmRlFQUxdccD/sM4YxDvDw3qTV/N 16lAy/HCsI0XruJKQmm5cXMRf+XLDnSFJY7Isu5P5C/r7GCv90Uj43EiPnjszpcQdWMU S+ajamNycQdpTrqLuOnX/KFnSKlnIK1P4sukOnqa7cwh3a3GK9skLeO9kv+bsHTA0ymD hgO21RYKhR54SRSkNVH2QLus6PHOHAxzbGkFLElgKWQ2qFWgkIpi3vlJ2xshQOODye8Q 4WKcViOhERDw7mgpJVljMl0f0aQ9eYdDbak7JzfO78PsRVA8vushUmy0sssPRhnambBB CpiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=7VrjAvgxBom4f00k6BWdOFuDKo+L/ZoZDXl5wuLb6/Q=; b=DYR2fju8ARxYVRyBV3lAcBxBX3ZpPm9BuFU8mPazaCMetde8x1SXXAWrUH2iQSd/2c I3V9zoqiJpsvKzPf8rWWvKkeS8JNUhs2KNRrVkSodaNygDEClfUScyO5RDrDr9Nq/9zi m5SWlU2La3v6bhxbUpBqYXiKwTb3caWq4a0VrJ9ADb4ChHv4dsQvnRjJ+1vzWELW+On3 mHeaEmQ4tGO0Yb2V4GVShWC8K/fbeSOHM2JE1Prp1ruaeDxsTw/EgqG4u9ixMTNQStwa iQlHCFNv0LzALlWfequIS+Enj/dUkVEGUlGG8CNmzyb+A6Zg8Rc7FXihc0uDNdY1T4sa tRtA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r13si14671093pgn.420.2019.07.23.20.12.06; Tue, 23 Jul 2019 20:12:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726351AbfGXDKO (ORCPT + 99 others); Tue, 23 Jul 2019 23:10:14 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2709 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725468AbfGXDKO (ORCPT ); Tue, 23 Jul 2019 23:10:14 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id CF1FEE77B2783C2E79F0; Wed, 24 Jul 2019 11:10:11 +0800 (CST) Received: from [127.0.0.1] (10.133.213.239) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Wed, 24 Jul 2019 11:10:05 +0800 Subject: Re: [PATCH] RDMA/hns: Fix build error for hip08 To: Jason Gunthorpe , Leon Romanovsky References: <20190723024908.11876-1-yuehaibing@huawei.com> <20190723074339.GJ5125@mtr-leonro.mtl.com> <20190723123402.GA15357@ziepe.ca> <20190723133540.GM5125@mtr-leonro.mtl.com> <20190723133739.GC15357@ziepe.ca> CC: , , , , From: Yuehaibing Message-ID: <75865ec7-443e-f65a-2221-8fbc57fedb6b@huawei.com> Date: Wed, 24 Jul 2019 11:10:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20190723133739.GC15357@ziepe.ca> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/7/23 21:37, Jason Gunthorpe wrote: > On Tue, Jul 23, 2019 at 04:35:40PM +0300, Leon Romanovsky wrote: >> On Tue, Jul 23, 2019 at 09:34:02AM -0300, Jason Gunthorpe wrote: >>> On Tue, Jul 23, 2019 at 10:43:39AM +0300, Leon Romanovsky wrote: >>>> On Tue, Jul 23, 2019 at 10:49:08AM +0800, YueHaibing wrote: >>>>> If INFINIBAND_HNS_HIP08 is selected and HNS3 is m, >>>>> but INFINIBAND_HNS is y, building fails: >>>>> >>>>> 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' >>>> >>>> It means that you have a problem with header files of your hns3. >>>> >>>>> >>>>> Reported-by: Hulk Robot >>>>> Fixes: dd74282df573 ("RDMA/hns: Initialize the PCI device for hip08 RoCE") >>>>> Signed-off-by: YueHaibing >>>>> drivers/infiniband/hw/hns/Kconfig | 3 ++- >>>>> 1 file changed, 2 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/drivers/infiniband/hw/hns/Kconfig b/drivers/infiniband/hw/hns/Kconfig >>>>> index b59da5d..4371c80 100644 >>>>> +++ b/drivers/infiniband/hw/hns/Kconfig >>>>> @@ -23,7 +23,8 @@ config INFINIBAND_HNS_HIP06 >>>>> >>>>> config INFINIBAND_HNS_HIP08 >>>>> bool "Hisilicon Hip08 Family RoCE support" >>>>> - depends on INFINIBAND_HNS && PCI && HNS3 >>>>> + depends on INFINIBAND_HNS && (INFINIBAND_HNS = HNS3) >>>> >>>> This is wrong. >>> >>> It is tricky. It is asserting that the IB side is built as a module if >>> the ethernet side is a module.. >>> >>> It is kind of a weird pattern as the module config is INFINIBAND_HNS >>> and these others are just bool opens what to include, but I think it >>> is OK.. >> >> select ??? > > select doesn't influence module or not any different from depeends Ok, it seems select is a better solution, it allows HNS3 is y while INFINIBAND_HNS is m, Will send v2, Thanks! > > Jason > > . >