From: Logan Gunthorpe Date: Thu, 23 May 2019 22:30:55 +0000 (-0600) Subject: NTB: Rename ntb.c to support multiple source files in the module X-Git-Tag: v5.3-rc1~6^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d217e07b32a6750e44f529e0218898c024b2c637;p=thirdparty%2Fkernel%2Flinux.git 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 Cc: Dave Jiang Cc: Allen Hubbe Signed-off-by: Jon Mason --- diff --git a/drivers/ntb/Makefile b/drivers/ntb/Makefile index 1921dec1949de..537226f8e78d8 100644 --- a/drivers/ntb/Makefile +++ b/drivers/ntb/Makefile @@ -1,2 +1,4 @@ obj-$(CONFIG_NTB) += ntb.o hw/ test/ obj-$(CONFIG_NTB_TRANSPORT) += ntb_transport.o + +ntb-y := core.o diff --git a/drivers/ntb/ntb.c b/drivers/ntb/core.c similarity index 100% rename from drivers/ntb/ntb.c rename to drivers/ntb/core.c