Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NTB: Rename ntb.c to support multiple source files in the module

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>

authored by

Logan Gunthorpe and committed by
Jon Mason
d217e07b 5f1b1f06

+2
+2
drivers/ntb/Makefile
··· 1 1 obj-$(CONFIG_NTB) += ntb.o hw/ test/ 2 2 obj-$(CONFIG_NTB_TRANSPORT) += ntb_transport.o 3 + 4 + ntb-y := core.o
drivers/ntb/ntb.c drivers/ntb/core.c