From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: [PATCH] linux: Allow actually using CONFIG_XEN_BLKDEV_TAP=m Date: Thu, 25 Oct 2007 10:17:12 +0100 Message-ID: <47207B38.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Again, this got broken. It would be really nice if regression testing included building as a module everything that can be configured as such... As usual, written and tested against 2.6.23 and made apply against 2.6.18 without further testing. Signed-off-by: Jan Beulich Index: head-2007-10-15/arch/i386/mm/hypervisor.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- head-2007-10-15.orig/arch/i386/mm/hypervisor.c 2007-10-19 = 17:17:09.000000000 +0200 +++ head-2007-10-15/arch/i386/mm/hypervisor.c 2007-10-19 17:17:59.0000000= 00 +0200 @@ -56,6 +56,7 @@ void xen_l1_entry_update(pte_t *ptr, pte u.val =3D __pte_val(val); BUG_ON(HYPERVISOR_mmu_update(&u, 1, NULL, DOMID_SELF) < 0); } +EXPORT_SYMBOL_GPL(xen_l1_entry_update); =20 void xen_l2_entry_update(pmd_t *ptr, pmd_t val) { Index: head-2007-10-15/drivers/xen/blktap/blktap.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- head-2007-10-15.orig/drivers/xen/blktap/blktap.c 2007-10-19 = 17:17:15.000000000 +0200 +++ head-2007-10-15/drivers/xen/blktap/blktap.c 2007-06-22 09:21:11.0000000= 00 +0200 @@ -116,13 +116,7 @@ typedef struct tap_blkif { static struct tap_blkif *tapfds[MAX_TAP_DEV]; static int blktap_next_minor; =20 -static int __init set_blkif_reqs(char *str) -{ - get_option(&str, &blkif_reqs); - return 1; -} -__setup("blkif_reqs=3D", set_blkif_reqs); - +module_param(blkif_reqs, int, 0); /* Run-time switchable: /sys/module/blktap/parameters/ */ static unsigned int log_stats =3D 0; static unsigned int debug_lvl =3D 0;