Commit 556a2c7d authored by Ren Zhijie's avatar Ren Zhijie Committed by Jon Mason

PCI: endpoint: Fix Kconfig dependency

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: default avatarHulk Robot <hulkci@huawei.com>
Fixes: ff32fac00d97("NTB: EPF: support NTB transfer between PCI RC and EP connection")
Signed-off-by: default avatarRen Zhijie <renzhijie2@huawei.com>
Acked-by: default avatarFrank Li <frank.li@nxp.com>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 7b14a5e9
...@@ -29,6 +29,7 @@ config PCI_EPF_NTB ...@@ -29,6 +29,7 @@ config PCI_EPF_NTB
config PCI_EPF_VNTB config PCI_EPF_VNTB
tristate "PCI Endpoint NTB driver" tristate "PCI Endpoint NTB driver"
depends on PCI_ENDPOINT depends on PCI_ENDPOINT
depends on NTB
select CONFIGFS_FS select CONFIGFS_FS
help help
Select this configuration option to enable the Non-Transparent Select this configuration option to enable the Non-Transparent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment