blktap modular build fix
PATCH 1/1 blktap modular build fix
[[[WARNING TO COMMITTER: this patch also requires blktap.c to be renamed to blktapmain.c in order to avoid the .c/module naming conflict.]]]
The kernel blktap.c cannot build as a module: its makefile is broken for modular build, and it is also impossible to build a module from multiple .o files where the module name coincides with one of the source files.
Signed-off-by Stephen Tweedie <[email protected]>
linux-2.6.18.noarch/drivers/xen/blktap/Makefile renamed from drivers/xen/blktap/Makefile +4 -1
@@ -1,3 +1,6 @@ LINUXINCLUDE += -I../xen/include/public/io -obj-y := xenbus.o interface.o blktap.o + +obj-$(CONFIG_XEN_BLKDEV_TAP) := blktap.o + +blktap-y := xenbus.o interface.o blktapmain.o