Skip to content

Commit

Permalink
uml: fix incompatible types warning in previous SG fix
Browse files Browse the repository at this point in the history
Fix an incompatible-pointer warning.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
WANG Cong authored and Linus Torvalds committed Nov 5, 2007
1 parent b07989f commit 4f40c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/drivers/ubd_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4f40c05

Please sign in to comment.