]> www.infradead.org Git - users/willy/xarray.git/commitdiff
NTB: Rename ntb.c to support multiple source files in the module
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 23 May 2019 22:30:55 +0000 (16:30 -0600)
committerJon Mason <jdmason@kudzu.us>
Thu, 13 Jun 2019 13:02:02 +0000 (09:02 -0400)
The kbuild system does not support having multiple source files in
a module if one of those source files has the same name as the module.

Therefore, we must rename ntb.c to core.c, while the module remains
ntb.ko.

This is similar to the way the nvme modules are structured.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Allen Hubbe <allenbh@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/Makefile
drivers/ntb/core.c [moved from drivers/ntb/ntb.c with 100% similarity]

index 1921dec1949deb5e93e3ccf5e0b0ad5c705e8c96..537226f8e78d847dae2dc72f68bc2072c3f497cc 100644 (file)
@@ -1,2 +1,4 @@
 obj-$(CONFIG_NTB) += ntb.o hw/ test/
 obj-$(CONFIG_NTB_TRANSPORT) += ntb_transport.o
+
+ntb-y := core.o
similarity index 100%
rename from drivers/ntb/ntb.c
rename to drivers/ntb/core.c