Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6382062iog; Thu, 23 Jun 2022 18:23:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ssqB/97EuxMmMude7anm4aHE/qy4XZBA2nNL1Ks3ueJfyCl31dXEZpQ/4rsWGkb7T5Qv3x X-Received: by 2002:a17:906:106:b0:715:7cdf:400f with SMTP id 6-20020a170906010600b007157cdf400fmr10851575eje.1.1656033798714; Thu, 23 Jun 2022 18:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656033798; cv=none; d=google.com; s=arc-20160816; b=jZzoEp9YOyadQw5Pe02MfLGIeAnec6lOlVwQOftr+MWmCcsBD5I2XeEXB+fB1MVDd/ BoR1HvO9/TVCBDGh3iryMmfSaZyBIIPpltktOThHlc66ayZsnJUQRmcvn4g7ZORz3WU/ zXZtQzvrH8ebwDwnkl8LF/V1XXEG1E3f60W6QBFQRH5YAKx88JTNgzXMUnYWz04veWJB hizheCt5mGCi41d7CUo9IjxrfyPFx0fImVDNfUj20AgAYkcQ7gajiTDTooSQ3UXIF/xK +MGz1uVJaN7dW/5G5PeK/iABECXhIp6UIQ3haMIby3QiWUF/RpULe1GAKUW5X/9Yzqhb +zYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=9o+56MY9YC+3stDqBSnGfuirXNucecO5RJeBF7/Vmu8=; b=zXl95O9aoe1qJHBjN9Jfpy6n1g5J8yxnihNTFvF6OnSdS+iwxJF1RjdgENNbJWJVDL 3ID43ACT3LdnAHpUtV/FT/NUlTdlQqmfN+FZwlTpnfxfiwr7LC5iDPLJ6C5QxuWzRmpo YhjYU0E0sbkE8buB6rtbZ4QdlAZfSnVe2KoMLdCw3JayP4TeaSY/whusM9J+xzGy6EuN wa+isYdfB9KraGzsOVk3zoqkqkzCJ33HscEZCGguLU6NKK3KbTNDpKD4r1fznDjBU9+T hW7PHupP2Bxml5vXlSdem6LM2uEs3TGRn1yuhwfAghpfL4CrbX+MusGuCmBAoh8DXQUY m9tQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ss28-20020a170907c01c00b00722e5b3eaa8si670966ejc.96.2022.06.23.18.22.53; Thu, 23 Jun 2022 18:23:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229615AbiFXBPz (ORCPT + 99 others); Thu, 23 Jun 2022 21:15:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiFXBPx (ORCPT ); Thu, 23 Jun 2022 21:15:53 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8875456770; Thu, 23 Jun 2022 18:15:51 -0700 (PDT) Received: from dggpeml500020.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LTfHD16ZjzShC2; Fri, 24 Jun 2022 09:12:24 +0800 (CST) Received: from dggpeml500008.china.huawei.com (7.185.36.147) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 24 Jun 2022 09:15:49 +0800 Received: from [127.0.0.1] (10.67.111.83) by dggpeml500008.china.huawei.com (7.185.36.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 24 Jun 2022 09:15:49 +0800 Message-ID: Date: Fri, 24 Jun 2022 09:15:49 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [EXT] Re: [PATCH -next] NTB: EPF: Fix Kconfig dependency To: Frank Li , Bjorn Helgaas CC: "kishon@ti.com" , "lpieralisi@kernel.org" , "kw@linux.com" , "bhelgaas@google.com" , "jdmason@kudzu.us" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20220623155524.GA1452766@bhelgaas> From: Ren Zhijie In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.111.83] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500008.china.huawei.com (7.185.36.147) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 在 2022/6/23 23:58, Frank Li 写道: > >> -----Original Message----- >> From: Bjorn Helgaas >> Sent: Thursday, June 23, 2022 10:55 AM >> To: Frank Li >> Cc: Ren Zhijie ; kishon@ti.com; >> lpieralisi@kernel.org; kw@linux.com; bhelgaas@google.com; >> jdmason@kudzu.us; linux-pci@vger.kernel.org; linux-kernel@vger.kernel.org >> Subject: [EXT] Re: [PATCH -next] NTB: EPF: Fix Kconfig dependency >> >> Caution: EXT Email >> >> On Thu, Jun 23, 2022 at 03:36:38PM +0000, Frank Li wrote: >>>> -----Original Message----- >>>> From: Ren Zhijie >>>> Sent: Thursday, June 23, 2022 3:46 AM >>>> To: kishon@ti.com; lpieralisi@kernel.org; kw@linux.com; >>>> bhelgaas@google.com; jdmason@kudzu.us; Frank Li >>>> Cc: linux-pci@vger.kernel.org; linux-kernel@vger.kernel.org; Ren Zhijie >>>> >>>> Subject: [PATCH -next] NTB: EPF: Fix Kconfig dependency >> @Ren, please use a typical subject line for the file, e.g., >> >> PCI: endpoint: ... >> >>>> If CONFIG_NTB is not set and CONFIG_PCI_EPF_VNTB is y. >>>> >>>> make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu-, will be failed, >> like >>>> this: >>>> >>>> drivers/pci/endpoint/functions/pci-epf-vntb.o: In function >>>> `epf_ntb_cmd_handler': >>>> pci-epf-vntb.c:(.text+0x95e): undefined reference to `ntb_db_event' >>>> pci-epf-vntb.c:(.text+0xa1f): undefined reference to `ntb_link_event' >>>> pci-epf-vntb.c:(.text+0xa42): undefined reference to `ntb_link_event' >>>> drivers/pci/endpoint/functions/pci-epf-vntb.o: In function >> `pci_vntb_probe': >>>> pci-epf-vntb.c:(.text+0x1250): undefined reference to >> `ntb_register_device' >>>> The functions ntb_*() are defined in drivers/ntb/core.c, which need >>>> CONFIG_NTB setting y to be build-in. >>>> To fix this build error, add depends on NTB. >>>> >>>> Reported-by: Hulk Robot >>>> Fixes: ff32fac00d97("NTB: EPF: support NTB transfer between PCI RC and >> EP >>>> connection") >>>> Signed-off-by: Ren Zhijie >>>> --- >>> [Frank Li] Acked >> @Frank: if you use the conventional style, e.g., >> "Acked-by: Frank Li ", tooling like b4 will >> automatically pick it up. Just saying "Acked" is likely to get missed >> or ignored. > Thanks. > Acked-by: Frank Li sure, will fix it in patch v2. Thanks, Ren Zhijie >>>> drivers/pci/endpoint/functions/Kconfig | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> diff --git a/drivers/pci/endpoint/functions/Kconfig >>>> b/drivers/pci/endpoint/functions/Kconfig >>>> index 362555b024e8..9beee4f0f4ee 100644 >>>> --- a/drivers/pci/endpoint/functions/Kconfig >>>> +++ b/drivers/pci/endpoint/functions/Kconfig >>>> @@ -29,6 +29,7 @@ config PCI_EPF_NTB >>>> config PCI_EPF_VNTB >>>> tristate "PCI Endpoint NTB driver" >>>> depends on PCI_ENDPOINT >>>> + depends on NTB >>>> select CONFIGFS_FS >>>> help >>>> Select this configuration option to enable the Non-Transparent >>>> -- >>>> 2.17.1 > .