Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp985916pxb; Thu, 4 Feb 2021 02:03:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKsyPAIaWFZemj9OVtwtlMFKtKpUKGu8Cab9Rlo1Wv6Jqx5q1t1Br0DQS50OrFu//d48y5 X-Received: by 2002:a05:6402:306f:: with SMTP id bs15mr7077945edb.232.1612433001564; Thu, 04 Feb 2021 02:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612433001; cv=none; d=google.com; s=arc-20160816; b=m24ilB6DOAy4FBHi1uuD7fqFDREx0p76qjFgvzXFy2csw0NVAWOU4cBhPCScgSp6mI JCeO4rCr1vrRBuw2bC6etVlCtS1Zsy4j0+camW8+k9rLPcYEUclOKgppwG9VIhfMviCV wwb09npB4penWlbRMihdR40gBWdy3YAYPc4sdl1AlyFceArO1rNdTxJpTzUpxPE2YuyP 7sU/OjYEcCiKnaFp3Bg0r6EEJ3THFujyJvTjzLi+rjl/evRWDCHHuRON/gwfoIITzz7I wWKlCw6uiLmbhXFL3U6AOcgdLxDTZFBW6qhqLBEkb8ApMO2p20ldaztDZ/VJRQRw3KCN CPVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=YDE9zOJW6gm1M8RRPGUM51JAXNVuAGvnhxhWEBEpAMk=; b=JvnY5dkwmfqJJyG2SEe9Kt1Eqme1UrF65mpMDNd0VedewYNnjNSkFT8x+JqPkHn+lD P4PxFKkoPqOPnkrzXaN7V8KRsi/EIZ5ko1Pco+xNxo3U/pvX5dQoZ24mBlVim+JTZ68J xYBGXuuPL9+78PbcHzkPU+ntX7C13fRJV51uLu2IQeETxFXTeQW3vIJs2nnEkdpsn+SI 5H9rkKrVRvx/nNfmUr3kpoSUIHTWIl9feZI2sUIhAwgXa9Ail6IiOGwAs3f80IIqFAmC k+r8IMEylKQsOTuOUDeQrmlQifeI0OR48/YUs/Ihlss3RiJaUvmJmsryDrSrayUzwHhh TFZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si2487479ejt.11.2021.02.04.02.02.56; Thu, 04 Feb 2021 02:03:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235181AbhBDJ7H (ORCPT + 99 others); Thu, 4 Feb 2021 04:59:07 -0500 Received: from foss.arm.com ([217.140.110.172]:55134 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232838AbhBDJ7G (ORCPT ); Thu, 4 Feb 2021 04:59:06 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0044511D4; Thu, 4 Feb 2021 01:58:21 -0800 (PST) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4F8263F719; Thu, 4 Feb 2021 01:58:20 -0800 (PST) Date: Thu, 4 Feb 2021 09:58:15 +0000 From: Lorenzo Pieralisi To: Randy Dunlap , kishon@ti.com Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH -next] PCI: endpoint: fix build error, EP NTB driver uses configfs Message-ID: <20210204095815.GA26804@e121166-lin.cambridge.arm.com> References: <20210202201255.26768-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210202201255.26768-1-rdunlap@infradead.org> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 02, 2021 at 12:12:55PM -0800, Randy Dunlap wrote: > The pci-epf-ntb driver uses configfs APIs, so it should depend on > CONFIGFS_FS to prevent build errors. > > ld: drivers/pci/endpoint/functions/pci-epf-ntb.o: in function `epf_ntb_add_cfs': > pci-epf-ntb.c:(.text+0x1b): undefined reference to `config_group_init_type_name' > > Fixes: 7dc64244f9e9 ("PCI: endpoint: Add EP function driver to provide NTB functionality") > > Signed-off-by: Randy Dunlap > Cc: Kishon Vijay Abraham I > Cc: Lorenzo Pieralisi > Cc: linux-pci@vger.kernel.org > --- > You may switch to 'select CONFIG_FS_FS' if you feel strongly about it. Kishon ? Thanks, Lorenzo > drivers/pci/endpoint/functions/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > --- linux-next-20210202.orig/drivers/pci/endpoint/functions/Kconfig > +++ linux-next-20210202/drivers/pci/endpoint/functions/Kconfig > @@ -16,6 +16,7 @@ config PCI_EPF_TEST > config PCI_EPF_NTB > tristate "PCI Endpoint NTB driver" > depends on PCI_ENDPOINT > + depends on CONFIGFS_FS > help > Select this configuration option to enable the NTB driver > for PCI Endpoint. NTB driver implements NTB controller