Commit 4f40c055 authored by WANG Cong's avatar WANG Cong Committed by Linus Torvalds

uml: fix incompatible types warning in previous SG fix

Fix an incompatible-pointer warning.
Signed-off-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b07989f5
...@@ -705,7 +705,7 @@ static int ubd_add(int n, char **error_out) ...@@ -705,7 +705,7 @@ static int ubd_add(int n, char **error_out)
ubd_dev->size = ROUND_BLOCK(ubd_dev->size); ubd_dev->size = ROUND_BLOCK(ubd_dev->size);
INIT_LIST_HEAD(&ubd_dev->restart); INIT_LIST_HEAD(&ubd_dev->restart);
sg_init_table(&ubd_dev->sg, MAX_SG); sg_init_table(ubd_dev->sg, MAX_SG);
err = -ENOMEM; err = -ENOMEM;
ubd_dev->queue = blk_init_queue(do_ubd_request, &ubd_dev->lock); ubd_dev->queue = blk_init_queue(do_ubd_request, &ubd_dev->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment