Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5654030iog; Thu, 23 Jun 2022 02:39:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sydXdVGUnwNXzJcmfr9xCZWKL+nhfNU2nqrwMN1zGBfp1PhTO8dmqZlDUhG9UeYnzPU2ei X-Received: by 2002:a05:6402:4408:b0:435:9ed2:9be with SMTP id y8-20020a056402440800b004359ed209bemr9400971eda.81.1655977149920; Thu, 23 Jun 2022 02:39:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655977149; cv=none; d=google.com; s=arc-20160816; b=ir6k9UGMD6SY7V4q70rrPun0f7BuL6/HDpOi/LtSptxYsnt/PU9tjc6UhUqRVmayHW 5SEuSixXGq1BeEBQ+4vKkfk3cqYTLIo3RqE9q1ikCkdtatMCW7PQK50ZpkcHjeSvqSYP N2zVMpXYIAH+kqyihM2lQ89YdB6NgqlttqeQ++/fVvlYwpYobKT1ReS9bHFEZYiaw9zp 2TadJwoBIqaLM2i5qPQwa+mQeEvY+S8TouXiMvwnryjK4zsTTO8xwjp1/o9ruAOVY/Yk fzKpA9BSMAahvTf+qh1+VZ/G098TjuQ/yLDh5Z/62eRkIpa07djm39iK+ofcFyla484v SQ2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=kqnwSGM5ZYi+GieucuoShEG2LAlmT1WnfOw7AVBXqF0=; b=SktjxfVDslTP7lwmmsGmcLhQWvHHJcUoBGbbO+Zg95gYcmrcEq8kGfUzeOmYRkgEIF jBc3IoMMc4UzcyKDTOPxMDlgpuEdxM8z97uazTnNo3tcVpX7BxIKhZvWFdMluLuwNfwS VhE3pdgdcCpJ39thK6U4Eky4CQHOUb25xUoI5WvcBJSyCfabwo9JVYh2PsBz9dGLHmYF exmnUmeQ/i5pdsOGI5iuPkNUONwLOPPnxc8/eqvJnK2Lzf5x77ju/BnQHP8cu7zQIXSb LPuWwH1x3SQ0KOxgmFVbImMks/KrdiZzEKSJdaicVzXK0Z2YBLmx3+FltgS9oX1AAtYx Jh7A== 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 q8-20020a056402248800b004357d9b78cesi9082111eda.514.2022.06.23.02.38.44; Thu, 23 Jun 2022 02:39:09 -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 S230520AbiFWIss (ORCPT + 99 others); Thu, 23 Jun 2022 04:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230138AbiFWIsr (ORCPT ); Thu, 23 Jun 2022 04:48:47 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A3BE4924E; Thu, 23 Jun 2022 01:48:46 -0700 (PDT) Received: from dggpeml500022.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LTDQG0PFWzkWTY; Thu, 23 Jun 2022 16:47:02 +0800 (CST) Received: from dggpeml500008.china.huawei.com (7.185.36.147) by dggpeml500022.china.huawei.com (7.185.36.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 16:48:11 +0800 Received: from huawei.com (10.67.175.34) 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; Thu, 23 Jun 2022 16:48:11 +0800 From: Ren Zhijie To: , , , , , CC: , , Ren Zhijie Subject: [PATCH -next] NTB: EPF: Fix Kconfig dependency Date: Thu, 23 Jun 2022 16:46:29 +0800 Message-ID: <20220623084629.260822-1-renzhijie2@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.175.34] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) 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,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 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 --- 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