From: WANG Cong Date: Mon, 5 Nov 2007 22:50:59 +0000 (-0800) Subject: uml: fix incompatible types warning in previous SG fix X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4f40c05528f9d612057a3dd382008a54179f8919;p=openwrt%2Fstaging%2Fblogic.git uml: fix incompatible types warning in previous SG fix Fix an incompatible-pointer warning. Signed-off-by: WANG Cong Signed-off-by: Jeff Dike Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index e184b44b1011..7e6cdde62ead 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -705,7 +705,7 @@ static int ubd_add(int n, char **error_out) ubd_dev->size = ROUND_BLOCK(ubd_dev->size); INIT_LIST_HEAD(&ubd_dev->restart); - sg_init_table(&ubd_dev->sg, MAX_SG); + sg_init_table(ubd_dev->sg, MAX_SG); err = -ENOMEM; ubd_dev->queue = blk_init_queue(do_ubd_request, &ubd_dev->lock);