archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] PCI: endpoint: fix build error, EP NTB driver uses configfs
@ 2021-02-02 20:12 Randy Dunlap
  2021-02-04  9:58 ` Lorenzo Pieralisi
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2021-02-02 20:12 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Kishon Vijay Abraham I, Lorenzo Pieralisi, linux-pci

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 <>
You may switch to 'select CONFIG_FS_FS' if you feel strongly about it.

 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
 	  Select this configuration option to enable the NTB driver
 	  for PCI Endpoint. NTB driver implements NTB controller

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-05  5:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 20:12 [PATCH -next] PCI: endpoint: fix build error, EP NTB driver uses configfs Randy Dunlap
2021-02-04  9:58 ` Lorenzo Pieralisi
2021-02-04 13:45   ` Kishon Vijay Abraham I
2021-02-04 17:09     ` Lorenzo Pieralisi
2021-02-05  5:03       ` Kishon Vijay Abraham I

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).