Skip to content

Commit d217e07

Browse files
lsgunthjonmason
authored andcommitted
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 <[email protected]> Cc: Dave Jiang <[email protected]> Cc: Allen Hubbe <[email protected]> Signed-off-by: Jon Mason <[email protected]>
1 parent 5f1b1f0 commit d217e07

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/ntb/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
obj-$(CONFIG_NTB) += ntb.o hw/ test/
22
obj-$(CONFIG_NTB_TRANSPORT) += ntb_transport.o
3+
4+
ntb-y := core.o
File renamed without changes.

0 commit comments

Comments
 (0)