blktap2 needs blktap_prep_foreign. This dependency ensures that if XEN_BLKDEV_BACKEND is a module then blktap2 is too. Otherwise the following build error will occur: drivers/built-in.o: In function `blktap_prep_foreign'': /home/horms/projects/xen/hg/linux-2.6.18-xen.hg/drivers/xen/blktap2/device.c:448: undefined reference to `blkback_pagemap_read'' make: *** [.tmp_vmlinux1] Error 1 Signed-off-by: Simon Horman <horms@verge.net.au> Index: linux-2.6.18-xen.hg/drivers/xen/Kconfig ==================================================================--- linux-2.6.18-xen.hg.orig/drivers/xen/Kconfig 2010-03-31 15:45:07.000000000 +0900 +++ linux-2.6.18-xen.hg/drivers/xen/Kconfig 2010-03-31 15:45:12.000000000 +0900 @@ -65,8 +65,7 @@ config XEN_BLKDEV_TAP config XEN_BLKDEV_TAP2 tristate "Block-device tap backend driver 2" - depends on XEN_BACKEND - default XEN_BACKEND + depends on XEN_BACKEND && XEN_BLKDEV_BACKEND help The block tap driver is an alternative to the block back driver and allows VM block requests to be redirected to userspace through _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
>>> Simon Horman <horms@verge.net.au> 31.03.10 08:51 >>> >blktap2 needs blktap_prep_foreign. >This dependency ensures that if XEN_BLKDEV_BACKEND is a module >then blktap2 is too. Otherwise the following build error will occur: > >drivers/built-in.o: In function `blktap_prep_foreign'': >/home/horms/projects/xen/hg/linux-2.6.18-xen.hg/drivers/xen/blktap2/device.c:448: >undefined reference to `blkback_pagemap_read'' >make: *** [.tmp_vmlinux1] Error 1 > >Signed-off-by: Simon Horman <horms@verge.net.au>NAK: blkback_pagemap_read() & Co don''t even live in blkbk.ko, they''re in their own module, the config option for which gets auto- selected. Perhaps you''re not using an up-to-date tree? Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Wed, Mar 31, 2010 at 09:13:06AM +0100, Jan Beulich wrote:> >>> Simon Horman <horms@verge.net.au> 31.03.10 08:51 >>> > >blktap2 needs blktap_prep_foreign. > >This dependency ensures that if XEN_BLKDEV_BACKEND is a module > >then blktap2 is too. Otherwise the following build error will occur: > > > >drivers/built-in.o: In function `blktap_prep_foreign'': > >/home/horms/projects/xen/hg/linux-2.6.18-xen.hg/drivers/xen/blktap2/device.c:448: > >undefined reference to `blkback_pagemap_read'' > >make: *** [.tmp_vmlinux1] Error 1 > > > >Signed-off-by: Simon Horman <horms@verge.net.au> > > NAK: blkback_pagemap_read() & Co don''t even live in blkbk.ko, > they''re in their own module, the config option for which gets auto- > selected. Perhaps you''re not using an up-to-date tree?Sorry, I must have had an old version of the tree at some point. But the problem I''m seeing still seems to exist in the latest tree. The following seems to resolve it. From: Simon Horman <horms@verge.net.au> blktap2: Depend on XEN_BLKDEV_BACKEND blktap2 needs blktap_prep_foreign. This dependency ensures that if CONFIG_XEN_BLKBACK_PAGEMAP is a module then blktap2 is too. Otherwise the following build error will occur: drivers/built-in.o: In function `blktap_prep_foreign'': /home/horms/projects/xen/hg/linux-2.6.18-xen.hg/drivers/xen/blktap2/device.c:448: undefined reference to `blkback_pagemap_read'' make: *** [.tmp_vmlinux1] Error 1 Signed-off-by: Simon Horman <horms@verge.net.au> Index: linux-2.6.18-xen.hg/drivers/xen/Kconfig ==================================================================--- linux-2.6.18-xen.hg.orig/drivers/xen/Kconfig 2010-03-31 15:45:07.000000000 +0900 +++ linux-2.6.18-xen.hg/drivers/xen/Kconfig 2010-03-31 15:45:12.000000000 +0900 @@ -65,8 +65,7 @@ config XEN_BLKDEV_TAP config XEN_BLKDEV_TAP2 tristate "Block-device tap backend driver 2" - depends on XEN_BACKEND - default XEN_BACKEND + depends on XEN_BACKEND && CONFIG_XEN_BLKBACK_PAGEMAP help The block tap driver is an alternative to the block back driver and allows VM block requests to be redirected to userspace through _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
>>> Simon Horman <horms@verge.net.au> 31.03.10 10:50 >>> >But the problem I''m seeing still seems to exist in the latest tree. >The following seems to resolve it.Still I don''t believe this is the case, and certainly your patch can''t resolve it (due to a typo in that you have left a CONFIG_ prefix in a Kconfig file). If anything really is broken, what would need fixing is the "config XEN_BLKBACK_PAGEMAP" part of the file. I cannot see, however, how XEN_BLKBACK_PAGEMAP can be m when XEN_BLKDEV_TAP2 is y. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Wed, Mar 31, 2010 at 10:14:12AM +0100, Jan Beulich wrote:> >>> Simon Horman <horms@verge.net.au> 31.03.10 10:50 >>> > >But the problem I''m seeing still seems to exist in the latest tree. > >The following seems to resolve it. > > Still I don''t believe this is the case, and certainly your patch can''t > resolve it (due to a typo in that you have left a CONFIG_ prefix in > a Kconfig file).Sorry, that was pretty sloppy.> If anything really is broken, what would need fixing is the "config > XEN_BLKBACK_PAGEMAP" part of the file. I cannot see, however, > how XEN_BLKBACK_PAGEMAP can be m when XEN_BLKDEV_TAP2 > is y.On further examination I think that XEN_BLKBACK_PAGEMAP is y, so my analysis seems to be wrong. But the build failure persists. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel