ia64/linux-2.6.18-xen.hg

changeset 806:0430b1dbfb3a

blkfront: Fix the build by expanding sg_init_table() in place.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Mar 06 12:51:33 2009 +0000 (2009-03-06)
parents 63be3e5e2f1a
children bca9d4cfbca2
files drivers/xen/blkfront/blkfront.c
line diff
     1.1 --- a/drivers/xen/blkfront/blkfront.c	Thu Mar 05 14:42:00 2009 +0000
     1.2 +++ b/drivers/xen/blkfront/blkfront.c	Fri Mar 06 12:51:33 2009 +0000
     1.3 @@ -233,7 +233,7 @@ static int setup_blkring(struct xenbus_d
     1.4  	SHARED_RING_INIT(sring);
     1.5  	FRONT_RING_INIT(&info->ring, sring, PAGE_SIZE);
     1.6  
     1.7 -	sg_init_table(info->sg, BLKIF_MAX_SEGMENTS_PER_REQUEST);
     1.8 +	memset(info->sg, 0, sizeof(info->sg));
     1.9  
    1.10  	err = xenbus_grant_ring(dev, virt_to_mfn(info->ring.sring));
    1.11  	if (err < 0) {